Skip to content

Commit

Permalink
TMP: attempt to fix npm error in mac
Browse files Browse the repository at this point in the history
  • Loading branch information
dtebbs committed Jan 22, 2021
1 parent a4a7518 commit 150b14b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/onpush-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,26 @@ jobs:
# runs-on: ubuntu-20.04
runs-on: macos-10.15
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v2
with:
node-version: '10'
- name: Cache npm (incl ganache-cli/node_modules)
uses: actions/cache@v2
with:
path: |
~/.npm
depends/ganache-cli/node_modules
key: check-contracts-npm--${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
# - name: Cache npm (incl ganache-cli/node_modules)
# uses: actions/cache@v2
# with:
# path: |
# ~/.npm
# depends/ganache-cli/node_modules
# key: check-contracts-npm-${{ hashFiles('**/package-lock.json') }}-${{ runner.os }}
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: check-contracts-pip-${{ runner.os }}-${{ hashFiles('client/setup.py') }}
path: |
~/.cache/pip
~/.solcx
key: check-contracts-pip-solcx-${{ hashFiles('client/setup.py') }}-${{ runner.os }}
- name: Check Contracts
run: scripts/ci check_contracts

Expand Down
1 change: 1 addition & 0 deletions scripts/ci
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function _setup_ganache() {
pushd zeth_contracts
npm config set python python2.7
npm config set engine-strict true
npm config set unsafe-perm true
npm install --unsafe-perm
popd
}
Expand Down

0 comments on commit 150b14b

Please sign in to comment.