Skip to content

Commit ac22d27

Browse files
ci: update workflows to separate linting and testing steps, and fix npm script for test command
1 parent 6f403c2 commit ac22d27

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/on-call-lint-test-build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ jobs:
1717
with:
1818
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1919

20-
- name: Lint and Test
21-
run: npm run check
20+
- name: Lint
21+
run: npm run lint && npm run lint:ts
22+
23+
- name: Test
24+
run: npm run test:coverage
2225

2326
- name: Build
2427
run: npm run build

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
contents: write
2424
steps:
2525
- name: Semantic Release
26-
uses: cloudbeds/workflows/.github/actions/semantic-release@main
26+
uses: cloudbeds/webpack-module-federation-types-plugin/.github/actions/semantic-release@main
2727
with:
2828
publishToNpm: true
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"scripts": {
2020
"build": "tsc",
2121
"watch": "tsc -w",
22-
"check": "npm run lint && npm run lint:ts && npm run test:coverage",
22+
"check": "npm run lint && npm run lint:ts && npm test",
2323
"lint": "biome check --write --unsafe",
2424
"lint:ts": "tsc --noEmit",
2525
"prepare": "simple-git-hooks",

0 commit comments

Comments
 (0)