Feature/add action unit test #11
Workflow file for this run
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: PR unit test | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Add dotnet tools | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x | |
- run: dotnet test ./katas/katas.sample.test --logger "trx,LogFileName=katas-sample-test-result.trx" || true | |
- name: Test report | |
uses: dorny/test-reporter@v1 | |
if: always() # run this step even if previous step failed | |
with: | |
name: Kata Tests # Name of the check run which will be created | |
path: "**/katas-sample-test-result.trx" # Path to test results | |
reporter: dotnet-trx | |
fail-on-error: true |