diff --git a/.github/codechecks.yml b/.github/codechecks.yml new file mode 100644 index 00000000..5f7b4eed --- /dev/null +++ b/.github/codechecks.yml @@ -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 diff --git a/.github/workflows/c#.yml b/.github/workflows/c#.yml new file mode 100644 index 00000000..065e63da --- /dev/null +++ b/.github/workflows/c#.yml @@ -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 diff --git a/.github/workflows/fe.yml b/.github/workflows/fe.yml new file mode 100644 index 00000000..5da6f6ff --- /dev/null +++ b/.github/workflows/fe.yml @@ -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 }}