Skip to content

Update release.yaml #10

Update release.yaml

Update release.yaml #10

Workflow file for this run

name: ".NET Build and Test"
on:
push:
branches: [ "main" ]
paths-ignore:
- '**/*.md'
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.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 --results-directory "TestResults"
- name: Output test results
uses: phoenix-actions/test-reporting@v15
if: always()
with:
name: Tests
path: TestResults/*.trx
reporter: dotnet-trx
list-suites: failed
list-tests: failed
output-to: step-summary