Skip to content

Commit af05a88

Browse files
committed
ci: update test workflow to run unit tests only
Updated the CI workflow to run unit tests only instead of all tests, improving build performance and focusing on core functionality tests. 将 CI 工作流更新为仅运行单元测试,而不是所有测试, 提高构建性能并专注于核心功能测试。 Change-Id: I27d867b4686aa35920e8669856e76ac6df75a2f8 Signed-off-by: OhYee <[email protected]>
1 parent 8486f93 commit af05a88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
- name: Lint
3434
run: npm run lint
3535

36-
- name: Test
37-
run: npm run test
36+
- name: Test (unit tests only)
37+
run: npm run test -- --testPathPattern="unittests"
3838

3939
- name: Build
4040
run: npm run build
@@ -56,8 +56,8 @@ jobs:
5656
rm -rf node_modules package-lock.json
5757
npm install
5858
59-
- name: Run tests with coverage
60-
run: npm run test:coverage
59+
- name: Run tests with coverage (unit tests only)
60+
run: npm run test:coverage -- --testPathPattern="unittests"
6161

6262
- name: Upload coverage to Codecov
6363
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)