File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Pipeline PR push
2+ on :
3+ pull_request :
4+ branches : [master]
5+
6+ jobs :
7+ build :
8+ runs-on : ${{matrix.os}}
9+ strategy :
10+ matrix :
11+ os : [ubuntu-latest, windows-latest, macOS-latest]
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+ with :
16+ fetch-depth : 0
17+
18+ - name : Setup .NET 8 Environment
19+ uses : actions/setup-dotnet@v4
20+ with :
21+ dotnet-version : ' 8.0.x'
22+
23+ - run : dotnet restore --locked-mode
24+ - run : dotnet clean --verbosity quiet
25+ - run : dotnet build --verbosity quiet /property:WarningLevel=0
26+
27+ test :
28+ needs : build
29+ runs-on : ${{matrix.os}}
30+ strategy :
31+ matrix :
32+ os : [ubuntu-latest, windows-latest, macOS-latest]
33+ steps :
34+ - name : Setup .NET 8 Environment
35+ uses : actions/setup-dotnet@v4
36+ with :
37+ dotnet-version : ' 8.0.x'
38+
39+ - run : dotnet restore --locked-mode
40+
41+ - name : Run Tests
42+ run : dotnet test
43+
44+ - name : Upload Test Results as Artifacts
45+ uses : actions/upload-artifact@v4
46+ with :
47+ name : PR-test-results-${{matrix.os}}
48+ path : ./TestResults/*.trx
49+
50+ - name : Show Failed Tests
51+ if : failure()
52+ run : echo "Some tests failed. Check uploaded artifacts for detailed logs."
You can’t perform that action at this time.
0 commit comments