Skip to content

Commit 8e03f36

Browse files
committed
+ workflows/{fe,c#}.yml
+ codechecks.yml @ .github
1 parent 7b067de commit 8e03f36

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

.github/codechecks.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
settings:
2+
# https://github.com/codechecks/monorepo/blob/4ccc8bbaab1586c0ef265f234f0a275fd40b38f8/packages/client/src/speculativeBranchSelection.ts#L73
3+
branches: ['v2']
4+
checks:
5+
- name: typecov
6+
options:
7+
strict: true
8+
atLeast: 95

.github/workflows/c#.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: c#
2+
on:
3+
push:
4+
#paths: ['c#/**']
5+
defaults:
6+
run:
7+
working-directory: ./c#
8+
jobs:
9+
cs:
10+
name: c#
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@main
14+
- uses: actions/setup-dotnet@main
15+
with:
16+
dotnet-version: 7
17+
cache: true
18+
cache-dependency-path: './crawler/packages.lock.json'
19+
- name: global.json
20+
run: dotnet new globaljson --sdk-version 7.0.405
21+
- name: restore
22+
run: dotnet restore
23+
- name: build
24+
run: dotnet build --configuration Debug

.github/workflows/fe.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
steps:
13+
- uses: actions/checkout@main
14+
- uses: actions/setup-node@main
15+
with:
16+
node-version: lts
17+
cache: yarn
18+
cache-dependency-path: ./yarn.lock
19+
- name: install
20+
run: yarn install --immutable
21+
- name: tsc
22+
run: yarn run vue-tsc
23+
- name: eslint
24+
if: ${{ !cancelled() }}
25+
run: yarn run eslint src
26+
- name: codechecks
27+
if: ${{ !cancelled() }}
28+
# contains CVE that triggers Dependabot
29+
run: |
30+
yarn add -D typecov @codechecks/client
31+
yarn run codechecks ../.github/codechecks.yml
32+
env:
33+
CC_SECRET: ${{ secrets.CC_SECRET }}

0 commit comments

Comments
 (0)