-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 835 Bytes
/
Copy pathpr.yml
File metadata and controls
30 lines (30 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: PR Workflow
on:
pull_request: # Triggers when you create a PR
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
checks: write
steps:
- uses: actions/checkout@v7
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Run Tests
run: dotnet test --report-trx --results-directory=".artifacts/test-results" --no-build --no-restore || true
- name: Publish Test Report
uses: dorny/test-reporter@v3
if: ${{ !cancelled() }}
with:
name: .NET Core Tests
path: ".artifacts/test-results/**/*.trx"
reporter: dotnet-trx
fail-on-error: true