Skip to content

Run unitest on ci

Run unitest on ci #31

Workflow file for this run

name: PR unit test
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
permissions: write-all
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
- run: ls katas/katas.sample.test/TestResults
if: always()
- name: Test report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: Kata Tests # Name of the check run which will be created
reporter: dotnet-trx
path: katas/katas.sample.test/TestResults/*.trx # Path to test results