Skip to content

Commit

Permalink
feat(ci): add hardhat cache as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-devatom committed Aug 31, 2023
1 parent cb6a352 commit 94ed6b6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,21 @@ jobs:
- name: Install dependencies
run: yarn --frozen-lockfile


- name: Load cache
uses: dawidd6/[email protected]
with:
name: hardhat-cache
path: cache
if_no_artifact_found: ignore

- name: Run e2e test suite
run: yarn test:e2e
env:
RPC_URL: ${{ secrets.RPC_URL }}

- name: Save cache
uses: actions/upload-artifact@v2
with:
name: hardhat-cache
path: cache
1 change: 1 addition & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const config: HardhatUserConfig = {
},
paths: {
tests: "./tests/e2e",
cache: "./cache",
},
mocha: {
timeout: 300000,
Expand Down

0 comments on commit 94ed6b6

Please sign in to comment.