Skip to content

Commit 1e94456

Browse files
committed
refactor: Simplify test job in CI workflow by removing matrix strategy and adjusting coverage directory
1 parent ad8af77 commit 1e94456

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ jobs:
2525
test:
2626
needs: validate
2727
runs-on: ubuntu-latest
28-
strategy:
29-
matrix:
30-
package: [api, base, config, database, file, navigation, shared, template, user]
3128
steps:
3229
- uses: actions/checkout@v3
3330
- uses: pnpm/action-setup@v2
@@ -37,27 +34,27 @@ jobs:
3734
with:
3835
node-version: 18
3936
- run: pnpm install
40-
- run: pnpm --filter @mixcore/${{ matrix.package }} test
37+
- run: pnpm test
4138
- name: Coverage
4239
uses: codecov/codecov-action@v3
4340
with:
4441
token: ${{ secrets.CODECOV_TOKEN }}
45-
directory: ./packages/${{ matrix.package }}/coverage
42+
directory: ./coverage
4643

47-
publish:
48-
needs: test
49-
if: github.ref == 'refs/heads/main'
50-
runs-on: ubuntu-latest
51-
steps:
52-
- uses: actions/checkout@v3
53-
- uses: pnpm/action-setup@v2
54-
with:
55-
version: 8
56-
- uses: actions/setup-node@v3
57-
with:
58-
node-version: 18
59-
registry-url: https://registry.npmjs.org/
60-
- run: pnpm install
61-
- run: pnpm build
62-
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
63-
- run: pnpm --filter @mixcore/* publish --access public
44+
# publish:
45+
# needs: test
46+
# if: github.ref == 'refs/heads/main'
47+
# runs-on: ubuntu-latest
48+
# steps:
49+
# - uses: actions/checkout@v3
50+
# - uses: pnpm/action-setup@v2
51+
# with:
52+
# version: 8
53+
# - uses: actions/setup-node@v3
54+
# with:
55+
# node-version: 18
56+
# registry-url: https://registry.npmjs.org/
57+
# - run: pnpm install
58+
# - run: pnpm build
59+
# - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
60+
# - run: pnpm --filter @mixcore/* publish --access public

0 commit comments

Comments
 (0)