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 2036b6b
Show file tree
Hide file tree
Showing 3 changed files with 63 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
22 changes: 22 additions & 0 deletions .github/workflows/c#.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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: 6
cache: true
cache-dependency-path: ./*/packages.lock.json
- name: restore
run: dotnet restore
- name: build
run: dotnet build --configuration Debug
33 changes: 33 additions & 0 deletions .github/workflows/fe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: fe
on:
push:
#paths: ['fe/**']
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 2036b6b

Please sign in to comment.