Skip to content

Commit 1d40ea3

Browse files
committed
$ yarn add -D typecov @codechecks/client
+ codechecks.yml @ fe + .github/actions/fe.yml
1 parent 7b067de commit 1d40ea3

File tree

4 files changed

+944
-11
lines changed

4 files changed

+944
-11
lines changed

.github/workflows/fe.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: fe
2+
on:
3+
push:
4+
paths: ['fe/**']
5+
defaults:
6+
run:
7+
working-directory: ./fe
8+
jobs:
9+
fe:
10+
name: fe
11+
runs-on: ubuntu-latest
12+
if: '!cancelled()'
13+
continue-on-error: true
14+
steps:
15+
- uses: actions/checkout@main
16+
- name: install
17+
run: yarn install --immutable
18+
- name: tsc
19+
run: yarn run vue-tsc
20+
- name: eslint
21+
run: yarn run eslint src
22+
- name: codechecks
23+
run: yarn run codechecks
24+
env:
25+
CC_SECRET: ${{ secrets.CC_SECRET }}

fe/codechecks.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
checks:
2+
- name: typecov
3+
options:
4+
strict: true
5+
atLeast: 95

fe/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"vue-router": "^4.2.5"
3737
},
3838
"devDependencies": {
39+
"@codechecks/client": "^0.1.12",
3940
"@stylistic/eslint-plugin": "^1.6.1",
4041
"@stylistic/eslint-plugin-migrate": "^1.6.1",
4142
"@tanstack/eslint-plugin-query": "^5.20.1",
@@ -64,6 +65,7 @@
6465
"import-sync": "^2.2.0",
6566
"rollup-plugin-visualizer": "^5.12.0",
6667
"stats.js": "^0.17.0",
68+
"typecov": "^0.2.3",
6769
"typescript": "^5.3.3",
6870
"typescript-eslint-parser-for-extra-files": "^0.6.0",
6971
"vite": "^5.1.1",

0 commit comments

Comments
 (0)