BootstrapBlazor3/.github/workflows/auto-pull-request-checks.yml
2023-01-31 22:17:08 +08:00

30 lines
563 B
YAML

name: Auto PR test(bot)
on:
pull_request:
branches:
- master
- main
jobs:
run_test:
name: run test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 7.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Test
run: |
dotnet test test/UnitTest -c Release --collect:"XPlat Code Coverage"
- name: Upload to Codecov
uses: codecov/codecov-action@v3.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}