Skip to content

Commit bba69ae

Browse files
committed
ワークフローで静的解析のジョブを用意
1 parent 4657676 commit bba69ae

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,24 @@ on:
1010
branches: ["main"]
1111

1212
jobs:
13-
build:
13+
static-check:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
18+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
19+
with:
20+
node-version-file: ".node-version"
21+
cache: "npm"
22+
- run: npm ci
23+
- name: Format Check
24+
run: npm run format
25+
- name: Lint
26+
run: npm run lint
27+
- name: Type Check
28+
run: npm run typecheck
29+
30+
build-and-test:
1431
runs-on: ubuntu-latest
1532

1633
strategy:
@@ -26,5 +43,7 @@ jobs:
2643
node-version: ${{ matrix.node-version }}
2744
cache: "npm"
2845
- run: npm ci
29-
- run: npm run build
30-
- run: npm test
46+
- name: Build
47+
run: npm run build
48+
- name: Unit Tests
49+
run: npm run test

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
run: |
1919
npm ci
2020
npm run lint
21+
npm run typecheck
2122
npm run test
2223
npm run build
2324
- run: npm publish

0 commit comments

Comments
 (0)