Skip to content

Commit

Permalink
cache npm and pip
Browse files Browse the repository at this point in the history
  • Loading branch information
dtebbs committed Dec 22, 2020
1 parent aca2d08 commit 2b65b9f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/onpush-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2b65b9f

Please sign in to comment.