2023-01-31 22:17:08 +08:00
|
|
|
name: Auto PR test(bot)
|
2023-01-21 01:54:05 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2023-01-23 01:17:27 +08:00
|
|
|
- main
|
2023-01-21 01:54:05 +08:00
|
|
|
|
|
|
|
jobs:
|
2023-01-25 21:52:27 +08:00
|
|
|
run_test:
|
2023-01-27 16:36:26 +08:00
|
|
|
name: run test
|
2023-01-21 01:54:05 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-01-27 16:36:26 +08:00
|
|
|
- uses: actions/checkout@v3
|
2023-01-21 01:54:05 +08:00
|
|
|
|
|
|
|
- name: Setup .NET 7.0
|
|
|
|
uses: actions/setup-dotnet@v1
|
|
|
|
with:
|
|
|
|
dotnet-version: 7.0.x
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: |
|
2023-01-22 18:34:48 +08:00
|
|
|
dotnet test test/UnitTest -c Release --collect:"XPlat Code Coverage"
|
2023-01-21 01:54:05 +08:00
|
|
|
|
|
|
|
- name: Upload to Codecov
|
2023-01-29 15:51:33 +08:00
|
|
|
uses: codecov/codecov-action@v3.1.1
|
2023-01-21 01:54:05 +08:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|