Skip to content

Commit 18f11e4

Browse files
authored
Merge pull request #2808 from NomicFoundation/speed-improvements-prerelease-workflow
Improve the speed of the pre-release workflow
2 parents 9e13570 + f292bc7 commit 18f11e4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/pre-release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Pre-release tests
33
on:
44
push:
55
branches: [pre-release-testing-branch]
6+
workflow_dispatch:
67

78
env:
89
RUN_ETHERSCAN_TESTS: yes
@@ -30,7 +31,17 @@ jobs:
3031
run: yarn build
3132
- name: lint
3233
run: yarn lint
34+
- name: Cache artifacts
35+
uses: actions/cache@v2
36+
with:
37+
path: |
38+
packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/**/artifacts
39+
key: hardhat-network-stack-traces-tests-${{ hashFiles('yarn.lock') }}-${{ hashFiles('packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/**/*.sol') }}-${{ hashFiles('packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/**/test.json') }}-${{ hashFiles('packages/hardhat-core/test/internal/hardhat-network/stack-traces/**/*.ts') }}
3340
- name: test
41+
env:
42+
DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI: true
43+
FORCE_COLOR: 3
44+
NODE_OPTIONS: "--max-old-space-size=4096"
3445
run: yarn test
3546
- name: Check dependency versions
3647
run: node scripts/check-dependencies.js

0 commit comments

Comments
 (0)