Skip to content

Commit effe393

Browse files
committed
added PR validation workflow
1 parent 4432c6c commit effe393

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: PR Validation
2+
3+
on:
4+
pull_request:
5+
branches: [ main, master, dev ]
6+
push:
7+
branches: [ main, master, dev ]
8+
9+
jobs:
10+
validate:
11+
name: Validate on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
fail-fast: false
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Setup .NET
24+
uses: actions/setup-dotnet@v4
25+
with:
26+
global-json-file: ./global.json
27+
28+
- name: Update version
29+
shell: pwsh
30+
run: ./build.ps1
31+
32+
- name: Restore dependencies
33+
run: dotnet restore
34+
35+
- name: Build
36+
run: dotnet build --no-restore -c Release
37+
38+
- name: Test
39+
run: dotnet test --no-build -c Release --logger "trx;LogFileName=test-results.trx"
40+
41+
- name: Upload test results
42+
uses: actions/upload-artifact@v4
43+
if: always()
44+
with:
45+
name: test-results-${{ matrix.os }}
46+
path: '**/test-results.trx'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ UpgradeLog*.htm
250250
*.bim.layout
251251
*.bim_*.settings
252252

253+
# Cursor rules
254+
.cursor/
255+
253256
# Microsoft Fakes
254257
FakesAssemblies/
255258

0 commit comments

Comments
 (0)