Skip to content

Commit

Permalink
$ yarn add -D typecov @codechecks/client
Browse files Browse the repository at this point in the history
+ codechecks.yml
@ fe
+ .github/actions/fe.yml
  • Loading branch information
n0099 committed Feb 12, 2024
1 parent 7b067de commit 89ed5ac
Show file tree
Hide file tree
Showing 4 changed files with 948 additions and 11 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/fe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: fe
on:
push:
paths: ['fe/**']
defaults:
run:
working-directory: ./fe
jobs:
fe:
name: fe
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: install
run: yarn install --immutable
- name: codechecks
run: yarn run codechecks
env:
CC_SECRET: ${{ secrets.CC_SECRET }}
- name: tsc
run: yarn run vue-tsc
if: ${{ !cancelled() }}
- name: eslint
run: yarn run eslint src
if: ${{ !cancelled() }}
9 changes: 9 additions & 0 deletions fe/codechecks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
settings:
branches: ['v2']
# https://github.com/codechecks/docs/blob/81efc535d898c802cb78642604b46e541324309b/configuration.md#speculative-branch-execution
speculativeBranchSelection: false
checks:
- name: typecov
options:
strict: true
atLeast: 95
2 changes: 2 additions & 0 deletions fe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"vue-router": "^4.2.5"
},
"devDependencies": {
"@codechecks/client": "^0.1.12",
"@stylistic/eslint-plugin": "^1.6.1",
"@stylistic/eslint-plugin-migrate": "^1.6.1",
"@tanstack/eslint-plugin-query": "^5.20.1",
Expand Down Expand Up @@ -64,6 +65,7 @@
"import-sync": "^2.2.0",
"rollup-plugin-visualizer": "^5.12.0",
"stats.js": "^0.17.0",
"typecov": "^0.2.3",
"typescript": "^5.3.3",
"typescript-eslint-parser-for-extra-files": "^0.6.0",
"vite": "^5.1.1",
Expand Down
Loading

0 comments on commit 89ed5ac

Please sign in to comment.