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 52c5dbb
Show file tree
Hide file tree
Showing 4 changed files with 947 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .github/codechecks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
settings:
# https://github.com/codechecks/monorepo/blob/4ccc8bbaab1586c0ef265f234f0a275fd40b38f8/packages/client/src/speculativeBranchSelection.ts#L73
branches: ['v2', 'v2', 'v2']
checks:
- name: typecov
options:
strict: true
atLeast: 95
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 ../.github/codechecks.yml
env:
CC_SECRET: ${{ secrets.CC_SECRET }}
- name: tsc
run: yarn run vue-tsc
if: ${{ !cancelled() }}
- name: eslint
run: yarn run eslint src
if: ${{ !cancelled() }}
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 52c5dbb

Please sign in to comment.