Skip to content

Commit 2c74575

Browse files
committed
ci(jest): enable jest shard on github-actions
1 parent 451e99f commit 2c74575

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/nodejs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,13 @@ jobs:
5959
uses: wagoid/commitlint-github-action@v4
6060

6161
test:
62-
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}
62+
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }} (${{ matrix.shard }})
6363

6464
strategy:
6565
matrix:
6666
os: [ubuntu-latest, windows-latest, macos-latest]
6767
node-version: [12.x, 14.x, 16.x, 17.x]
68+
shard: ["1/4", "2/4", "3/4", "4/4"]
6869
webpack-version: [latest]
6970
include:
7071
- node-version: 16.x
@@ -102,7 +103,7 @@ jobs:
102103
cp -R tmp-client client
103104
104105
- name: Run tests for webpack version ${{ matrix.webpack-version }}
105-
run: npm run test:coverage -- --ci
106+
run: npm run test:coverage -- --ci --shard=${{ matrix.shard }}
106107

107108
- name: Submit coverage data to codecov
108109
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)