Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: use yarn cache in the CI script #159

Merged
merged 1 commit into from
Jan 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -14,7 +14,22 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: |
yarn install
yarn build
yarn test

- name: Yarn cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Yarn install
run: |
mkdir .yarncache
yarn install --cache-folder ./.yarncache --frozen-lockfile
rm -rf .yarncache
yarn cache clean

- name: Build
run: yarn build

- name: Test
run: yarn test
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@
"scripts": {
"clean": "lerna clean",
"unbuild": "lerna run unbuild",
"build": "lerna run build --stream",
"test": "FORCE_COLOR=1 lerna run test --stream",
"test:ci": "FORCE_COLOR=1 lerna run test:ci --stream",
"format": "lerna run format"
"build": "lerna run build --stream --npm-client=yarn",
"test": "FORCE_COLOR=1 lerna run test --stream --npm-client=yarn",
"format": "lerna run format --npm-client=yarn",
"postinstall": "cd packages/safe-ethers-lib; hardhat compile"
},
"workspaces": {
"packages": [