Skip to content

Commit 276f52a

Browse files
authored
feat: Add extensible CI/CD pipeline with multi-OS support
1 parent 91dc5f5 commit 276f52a

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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."

0 commit comments

Comments
 (0)