2023-07-10 10:36:27 +00:00
|
|
|
name: Build and Test
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup dotnet
|
|
|
|
uses: actions/setup-dotnet@v3
|
|
|
|
with:
|
|
|
|
dotnet-version: '7.0.x'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: dotnet restore
|
|
|
|
- name: Build
|
|
|
|
run: dotnet build
|
|
|
|
- name: Run Unit Tests
|
2023-07-10 10:47:11 +00:00
|
|
|
run: dotnet test --filter Unit --no-restore --verbosity normal
|
|
|
|
- name: Test Report
|
|
|
|
uses: dorny/test-reporter@v1
|
|
|
|
if: success() || failure()
|
|
|
|
with:
|
|
|
|
name: Test Results
|
|
|
|
path: TestResults/*.trx
|
|
|
|
reporter: dotnet-trx
|