Skip to content

Feature/add action unit test #11

Feature/add action unit test

Feature/add action unit test #11

Workflow file for this run

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