Skip to content

Commit

Permalink
+ workflows/{fe,c#}.yml
Browse files Browse the repository at this point in the history
+ codechecks.yml
@ .github
  • Loading branch information
n0099 committed Feb 12, 2024
1 parent 7b067de commit 6e96f1a
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 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']
checks:
- name: typecov
options:
strict: true
atLeast: 95
24 changes: 24 additions & 0 deletions .github/workflows/c#.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: c#
on:
push:
#paths: ['c#/**']
defaults:
run:
working-directory: ./c#
jobs:
cs:
name: c#
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-dotnet@main
with:
dotnet-version: 7
cache: true
cache-dependency-path: 'crawler/packages.lock.json'
- name: global.json
run: dotnet new globaljson --sdk-version 7.0.405
- name: restore
run: dotnet restore
- name: build
run: dotnet build --configuration Debug
32 changes: 32 additions & 0 deletions .github/workflows/fe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: fe
on:
push
defaults:
run:
working-directory: ./fe
jobs:
fe:
name: fe
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@main
with:
node-version: lts
cache: yarn
cache-dependency-path: ./yarn.lock
- name: install
run: yarn install --immutable
- name: tsc
run: yarn run vue-tsc
- name: eslint
if: ${{ !cancelled() }}
run: yarn run eslint src
- name: codechecks
if: ${{ !cancelled() }}
# contains CVE that triggers Dependabot
run: |
yarn add -D typecov @codechecks/client
yarn run codechecks ../.github/codechecks.yml
env:
CC_SECRET: ${{ secrets.CC_SECRET }}

0 comments on commit 6e96f1a

Please sign in to comment.