This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
style: cleanup code #159
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Test | |
on: | |
push: | |
branches: [ dev ] | |
pull_request: | |
branches: [ dev ] | |
jobs: | |
unit-test: | |
name: Unit Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.x.x | |
- name: Test Flandre.Core | |
run: | | |
dotnet test tests/Flandre.Core.Tests/ --collect:"XPlat Code Coverage" -r code-coverage/ | |
mv code-coverage/**/coverage.cobertura.xml code-coverage/core.xml | |
- name: Test Flandre.Framework | |
run: | | |
dotnet test tests/Flandre.Framework.Tests/ --collect:"XPlat Code Coverage" -r code-coverage/ | |
mv code-coverage/**/coverage.cobertura.xml code-coverage/fx.xml | |
- name: Upload Code Coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
files: code-coverage/core.xml,code-coverage/fx.xml |