Skip to content

Commit bd6b994

Browse files
committed
test: add flags
1 parent ffb7ab0 commit bd6b994

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.codecov.yml

+7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ coverage:
1111
threshold: 1%
1212
flags:
1313
- x6
14+
x6-common:
15+
threshold: 1%
16+
flags:
17+
- x6-common
1418
x6-geometry:
1519
threshold: 1%
1620
flags:
@@ -21,6 +25,9 @@ flags:
2125
paths:
2226
# filter the folder(s) you wish to measure by that flag
2327
- packages/x6
28+
x6-common:
29+
paths:
30+
- packages/x6-common
2431
x6-geometry:
2532
paths:
2633
- packages/x6-geometry

.github/workflows/ci.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,13 @@ jobs:
4444
${{ runner.os }}-pnpm-store-
4545
4646
- name: 🚧 Install dependencies
47-
run: pnpm install --no-frozen-lockfile
47+
run: pnpm install --no-frozen-lockfile --ignore-scripts
48+
49+
- name: 📦 build
50+
run: pnpm run build
4851

4952
- name: ✅ Test
50-
run: yarn test
53+
run: pnpm run test
5154

5255
- name: 🔑 Generate Token
5356
uses: wow-actions/use-app-token@v1
@@ -67,6 +70,12 @@ jobs:
6770
token: ${{ secrets.CODECOV_TOKEN }}
6871
files: ./packages/x6/test/coverage/lcov.info
6972
flags: x6
73+
- name: 💡 Codecov(x6-common)
74+
uses: codecov/codecov-action@v1
75+
with:
76+
token: ${{ secrets.CODECOV_TOKEN }}
77+
files: ./packages/x6-common/test/coverage/lcov.info
78+
flags: x6-common
7079
- name: 💡 Codecov(x6-geometry)
7180
uses: codecov/codecov-action@v1
7281
with:

0 commit comments

Comments
 (0)