Skip to content

Commit 2ffdd6f

Browse files
committed
CIを設置
1 parent 1697824 commit 2ffdd6f

File tree

3 files changed

+175
-0
lines changed

3 files changed

+175
-0
lines changed

.github/workflows/javascript-ci.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: JavaScript CI
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- main
8+
pull_request:
9+
branches:
10+
- develop
11+
- main
12+
13+
jobs:
14+
js-ci:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node-version: [20.x]
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
- name: Setup pnpm
26+
uses: pnpm/action-setup@v4
27+
with:
28+
version: 9
29+
- run: pnpm install
30+
- run: pnpm lint
31+
- run: pnpm build
32+
- run: pnpm test run -- --coverage
33+
- name: Upload coverage to Codecov
34+
uses: codecov/codecov-action@v4
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
file: ./src/coverage/coverage-final.json

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"@typescript-eslint/eslint-plugin": "^6.0.0",
3434
"@typescript-eslint/parser": "^6.0.0",
3535
"@vitejs/plugin-react-swc": "^3.3.2",
36+
"@vitest/coverage-v8": "^2.0.5",
3637
"autoprefixer": "^10.4.20",
3738
"eslint": "^8.45.0",
3839
"eslint-plugin-react-hooks": "^4.6.0",

pnpm-lock.yaml

+137
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)