Skip to content

Commit

Permalink
Merge pull request #6122 from Sage/jest_parallel
Browse files Browse the repository at this point in the history
ci: test for parallel
  • Loading branch information
nineteen88 committed Jun 20, 2023
2 parents 77c9862 + f912cd7 commit 243f8b1
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,30 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ">=18.12.1 18"
- run: npm ci
- run: npx prettier --check './src/**/*.{js,jsx,ts,tsx}'
- run: npm run lint
- run: npm run type-check

test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18]
node: ["16.x", "18.x"]
shard: [1, 2, 3, 4]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm test
- run: |
npm test -- --ci --maxWorkers=4 --shard=${{ matrix.shard }} --colors
env:
CONTAINER: ${{ matrix.shard }}

0 comments on commit 243f8b1

Please sign in to comment.