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 fad320f
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/actions/c#/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: c#/init
description: c#/init
runs:
using: composite
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 7
cache: true
cache-dependency-path: ${{ github.workspace }}/c#/*/packages.lock.json
- run: dotnet new globaljson --sdk-version 7.0.405
working-directory: c#
shell: bash
- run: dotnet restore
working-directory: c#
shell: bash
15 changes: 15 additions & 0 deletions .github/actions/fe/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: fe/init
description: fe/init
runs:
using: composite
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: yarn
cache-dependency-path: ${{ github.workspace }}/fe/yarn.lock
- name: install
run: yarn install --immutable
working-directory: fe
shell: bash
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
18 changes: 18 additions & 0 deletions .github/workflows/c#.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: c#
on:
push:
#paths: [c#/**]
defaults:
run:
working-directory: c#
jobs:
init:
runs-on: ubuntu-latest
strategy:
matrix:
project: [crawler, imagePipeline, shared, tbClient]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/c#
- name: build
run: dotnet build -c Debug ${{ matrix.project }}
30 changes: 30 additions & 0 deletions .github/workflows/fe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: fe
on:
push:
#paths: [fe/**]
defaults:
run:
working-directory: fe
jobs:
tsc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/fe
- run: yarn run vue-tsc
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/fe
- run: yarn run eslint src
codechecks:
runs-on: ubuntu-latest
steps: # contains CVE that triggers Dependabot
- uses: actions/checkout@v4
- uses: ./.github/actions/fe
- run: |
yarn add -D typecov @codechecks/client
yarn run codechecks ../.github/codechecks.yml
env:
CC_SECRET: ${{ secrets.CC_SECRET }}

0 comments on commit fad320f

Please sign in to comment.