Skip to content

Commit bfeda57

Browse files
drakang4Heeryong Kang
authored and
Heeryong Kang
committed
ci: jest maxWorkers 사용
1 parent 0a55b90 commit bfeda57

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,13 @@ jobs:
129129

130130
- run: npm ci
131131

132+
- name: Get number of CPU cores
133+
id: cpu-cores
134+
uses: SimenB/github-actions-cpu-cores@v1
135+
132136
- name: Generate coverage report
133137
id: test
134-
run: npm run test:coverage -- --ci --reporters github-actions --reporters summary --runInBand
138+
run: npm run test:coverage -- --ci --reporters github-actions --reporters summary --maxWorkers ${{ steps.cpu-cores.outputs.count }}
135139

136140
- name: Notify testing failure
137141
if: failure() && steps.test.outcome == 'failure'

0 commit comments

Comments
 (0)