Skip to content

v1.20

v1.20 #78

Workflow file for this run

name: test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
cover:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8
- uses: actions/setup-node@v3
with:
node-version: 20
- name: cover
run: |
dotnet workload restore backend/Naninovel.Common.sln
dotnet test backend /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
dotnet publish backend
npm ci
npm run build
npm run cover
- name: upload coverage report
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true