Skip to content

Commit f7196cd

Browse files
committed
chore: re-enable Ignition core integration tests
In the CI use `pnpm test:ci` to run both the unit tests on Ignition core and the integration tests against a local Hardhat network. We force the building of everything before testing Ignition core as the integration tests use Hardhat for the network (but not within the production code).
1 parent 29707b3 commit f7196cd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/hardhat-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ jobs:
107107
- name: Build
108108
run: pnpm build
109109
- name: Run tests
110-
run: pnpm run ${{ matrix.package == 'hardhat-chai-matchers' && 'test:ci' || 'test' }}
110+
run: pnpm run ${{ contains(fromJson('["hardhat-chai-matchers", "hardhat-ignition-core"]'), matrix.package) && 'test:ci' || 'test' }}

packages/hardhat-ignition-core/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
"test:build": "tsc --project ./test/",
4343
"test:coverage": "nyc mocha --recursive \"test/**/*.ts\" \"test-integrations/**/*.ts\"",
4444
"test:integrations": "mocha --recursive \"test-integrations/**/*.ts\"",
45+
"pretest:ci": "cd ../.. && pnpm build",
46+
"test:ci": "pnpm test && pnpm pnpm test:integrations",
4547
"clean": "rimraf .nyc_output coverage dist tsconfig.tsbuildinfo",
4648
"prepack": "pnpm build"
4749
},

0 commit comments

Comments
 (0)