Skip to content

Commit

Permalink
ci: run esm tests in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rflechtner committed Jul 20, 2023
1 parent 759a82b commit 1281511
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-node-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:

- name: run integration tests
timeout-minutes: 60
run: yarn test:integration:ci
run: yarn test:integration -b

bundle_cache:
runs-on: ubuntu-latest
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/tests-polkadot-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,13 @@ jobs:
with:
image: ${{ env.TESTCONTAINERS_WATCHER_IMG }}

- name: run integration tests
- name: run integration tests (cjs)
timeout-minutes: 60
run: yarn test:integration:ci
run: yarn test:integration -b

- name: run integration tests (esm)
timeout-minutes: 60
run: yarn test:integration:esm -b

create-issue:
runs-on: ubuntu-latest
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,14 @@ jobs:
with:
image: ${{ env.TESTCONTAINERS_WATCHER_IMG }}

- name: run integration tests
- name: run integration tests (cjs)
timeout-minutes: 60
run: yarn test:integration:ci
run: yarn test:integration -b

- name: run integration tests (esm)
timeout-minutes: 60
run: yarn test:integration:esm -b


bundle_cache:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion jest.config.integration.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
testEnvironment: 'node',
clearMocks: true,
// Parachain block time is 12s
testTimeout: 30000,
testTimeout: 120_000,
maxWorkers: 3,
rootDir: 'tests/integration/dist',
transform: {},
Expand Down
2 changes: 1 addition & 1 deletion jest.config.integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
testEnvironment: 'node',
clearMocks: true,
// Parachain block time is 12s
testTimeout: 30000,
testTimeout: 120_000,
maxWorkers: 3,
testPathIgnorePatterns: ['dist'],
transformIgnorePatterns: ['/node_modules/(?!@digitalbazaar|base.+-universal|crypto-ld)'],
Expand Down

0 comments on commit 1281511

Please sign in to comment.