Skip to content

Commit

Permalink
test: only repeat e2e tests on PRs (#2124)
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki authored Jul 10, 2023
1 parent c969c5e commit 530c501
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ jobs:
- name: Run test build
run: npm run test:build

- name: Run E2E against Kubo
- name: Run repeated-E2E against Kubo
if: github.ref != 'refs/heads/main' # only run duplicated e2e tests on PRs
run: npm run test:e2e -- --repeat-each 10 --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} # run each test 10 times to ensure no flakiness

- name: Run non-repeated-E2E against Kubo
if: github.ref == 'refs/heads/main' # run non-duplicated tests on non-PRs
run: npm run test:e2e -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}

- name: Generate nyc coverage report
id: coverage
run: npx nyc report --reporter=lcov
Expand Down

0 comments on commit 530c501

Please sign in to comment.