Skip to content

Update Tests.yml

Update Tests.yml #9

Workflow file for this run

name: Tests
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore ./Eshop.sln
- name: Build Identity unit test
run: dotnet build ./Eshop.sln --configuration ./tests/Identity.UnitTests/Identity.UnitTests.csproj
- name: Identity unit test
run: dotnet test ./Eshop.sln --configuration ./tests/Identity.UnitTests/Identity.UnitTests.csproj --logger "trx;LogFileName=test-results.trx" || true
- name: Test Report
uses: dorny/test-reporter@v1
if: always()
with:
name: DotNET Tests
path: "**/test-results.trx"
reporter: dotnet-trx
fail-on-error: true