Skip to content

feat: add .net6 support #63

feat: add .net6 support

feat: add .net6 support #63

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: All test
on:
push:
pull_request:
jobs:
build-test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx"
- name: Test Reporter
# You may pin to the exact commit or the version.
# uses: dorny/test-reporter@c9b3d0e2bd2a4e96aaf424dbaa31c46b42318226
uses: dorny/test-reporter@v1.6.0
if: success() || failure() # run this step even if previous step failed
with:
name: xUnit Tests # Name of the check run which will be created
path: '**/test-results.trx' # Path to test results
reporter: dotnet-trx # Format of test results