Skip to content

Commit

Permalink
Build EDR before running integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed May 3, 2024
1 parent a7a4ec1 commit fa04e9a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hardhat-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI: true
FORCE_COLOR: 3
NODE_OPTIONS: --max-old-space-size=4096
run: cd hardhat-tests && pnpm test
run: cd hardhat-tests && pnpm test:ci
lint-hardhat-tests:
name: Lint Hardhat tests
runs-on: ubuntu-latest
Expand Down
7 changes: 5 additions & 2 deletions hardhat-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
"lint:fix": "pnpm prettier --write && pnpm eslint --fix",
"eslint": "eslint 'test/**/*.ts'",
"prettier": "prettier \"**/*.{js,md,json}\"",
"pretest": "cd ../crates/edr_napi && pnpm build",
"test": "mocha --recursive \"test/**/*.ts\" && ./run-integration-tests.sh",
"pretest": "pnpm build:edr",
"test": "mocha --recursive \"test/**/*.ts\"",
"test:integration": "./run-integration-tests.sh",
"test:ci": "pnpm test && pnpm test:integration",
"build": "tsc --build --force --incremental .",
"build:edr": "cd ../crates/edr_napi && pnpm build",
"clean": "rimraf build-test tsconfig.tsbuildinfo test/internal/hardhat-network/provider/.hardhat_node_test_cache test/internal/hardhat-network/stack-traces/test-files/artifacts"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions hardhat-tests/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -e

pnpm build:edr

cd integration
for i in *; do
if [ -d "$i" ]; then
Expand Down

0 comments on commit fa04e9a

Please sign in to comment.