From 2b65b9f4e950a3f114bc8f06d139c4b427c515ad Mon Sep 17 00:00:00 2001 From: Duncan Tebbs Date: Tue, 22 Dec 2020 09:50:47 +0000 Subject: [PATCH] cache npm and pip --- .github/workflows/onpush-checks.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/onpush-checks.yml b/.github/workflows/onpush-checks.yml index 020e5cea0..87b65e51b 100644 --- a/.github/workflows/onpush-checks.yml +++ b/.github/workflows/onpush-checks.yml @@ -15,16 +15,16 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 10 - # - id: get_hashes - # run: | - # package_hash=`shasum zeth_contracts/package.json | head -c 8` - # echo "::set-output name=package_hash::${package_hash}" - - name: Cache Contracts + - name: Cache npm uses: actions/cache@v1 with: path: ~/.npm - key: check-client-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} - # key: check-client-ubuntu-20.04-node-modules-${{steps.get_hashes.outputs.package_hash}} + key: check-client-npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} + - name: Cache pip + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: check-client-pip-${{ runner.os }}-${{ hashFiles('client/setup.py') }} - name: Check Contracts run: scripts/ci check_contracts