Skip to content

Commit

Permalink
Cache dependencies on Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alcuadrado committed Oct 22, 2021
1 parent 08f3705 commit 977f486
Show file tree
Hide file tree
Showing 18 changed files with 121 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/LATEST_DEPENDENCY_VERSIONS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Test without yarn.lock
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12
- name: install vyper
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/e2e-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ jobs:
matrix:
node: [12, 14, 16]
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/hardhat-core-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ jobs:
name: Test hardhat-core on Windows with Node 12
runs-on: windows-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -46,10 +47,11 @@ jobs:
name: Test hardhat-core on MacOS with Node 12
runs-on: macos-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -67,10 +69,11 @@ jobs:
matrix:
node: [12, 14, 16]
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/hardhat-ethers-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ jobs:
name: Test hardhat-ethers on Windows with Node 12
runs-on: windows-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -45,10 +46,11 @@ jobs:
name: Test hardhat-ethers on MacOS with Node 12
runs-on: macos-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -63,10 +65,11 @@ jobs:
matrix:
node: [12, 14, 16]
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/hardhat-etherscan-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ jobs:
name: Test hardhat-etherscan on Windows with Node 12
runs-on: windows-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -45,10 +46,11 @@ jobs:
name: Test hardhat-etherscan on MacOS with Node 12
runs-on: macos-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -63,10 +65,11 @@ jobs:
matrix:
node: [12, 14, 16]
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/hardhat-ganache-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ jobs:
name: Test hardhat-ganache on Windows with Node 12
runs-on: windows-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -45,10 +46,11 @@ jobs:
name: Test hardhat-ganache on MacOS with Node 12
runs-on: macos-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -63,10 +65,11 @@ jobs:
matrix:
node: [12, 14, 16]
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/hardhat-network-forking-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ jobs:
name: Test Hardhat Network's forking functionality
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Cache network requests
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/hardhat-network-tracing-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ jobs:
matrix:
node: [12, 14, 16]
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/hardhat-shorthand-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ jobs:
name: Test hardhat-shorthand on Windows with Node 12
runs-on: windows-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -45,10 +46,11 @@ jobs:
name: Test hardhat-shorthand on MacOS with Node 12
runs-on: macos-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -63,10 +65,11 @@ jobs:
matrix:
node: [12, 14, 16]
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/hardhat-solhint-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ jobs:
name: Test hardhat-solhint on Windows with Node 12
runs-on: windows-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -45,10 +46,11 @@ jobs:
name: Test hardhat-solhint on MacOS with Node 12
runs-on: macos-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -63,10 +65,11 @@ jobs:
matrix:
node: [12, 14, 16]
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/hardhat-solpp-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ jobs:
name: Test hardhat-solpp on MacOS with Node 12
runs-on: macos-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -48,10 +49,11 @@ jobs:
matrix:
node: [12, 14, 16]
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/hardhat-truffle4-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ jobs:
name: Test hardhat-truffle4 on Windows with Node 12
runs-on: windows-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -47,10 +48,11 @@ jobs:
name: Test hardhat-truffle4 on MacOS with Node 12
runs-on: macos-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand All @@ -65,10 +67,11 @@ jobs:
matrix:
node: [12, 14, 16]
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
cache: yarn
- name: Install
run: yarn --frozen-lockfile
- name: Build
Expand Down
Loading

0 comments on commit 977f486

Please sign in to comment.