Skip to content

Commit

Permalink
chore(snackager): shard e2e tests in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Jul 11, 2024
1 parent f41b5a1 commit 98c6992
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/snackager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,18 @@ jobs:
run: yarn lint --max-warnings 0

- name: 🧪 Test snackager
run: yarn test --ci --maxWorkers 1 --testPathIgnorePatterns=__integration-tests__
run: yarn test --ci --maxWorkers 1
env:
# Enable Webpack 4 with newer Node versions
NODE_OPTIONS: --openssl-legacy-provider

e2e:
# Takes a long time, best to only run this on PRs
if: ${{ github.event_name == 'pull_request' }}
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4]
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repository
Expand All @@ -78,7 +82,7 @@ jobs:
uses: ./.github/actions/setup-snackager

- name: 🧪 Test snackager
run: yarn test --ci --maxWorkers 1 --testPathPattern=__integration-tests__
run: yarn test:e2e --ci --shard=${{ matrix.shard }}/4
env:
# Enable Webpack 4 with newer Node versions
NODE_OPTIONS: --openssl-legacy-provider
Expand Down

0 comments on commit 98c6992

Please sign in to comment.