Skip to content

Commit 36d409e

Browse files
committed
Add CI workflow for build and test across multiple OS environments
1 parent aecdb7e commit 36d409e

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
include:
15+
- os: ubuntu-latest
16+
solution: src/UnoPropertyGrid.slnx
17+
- os: macos-latest
18+
solution: src/UnoPropertyGrid.slnx
19+
- os: windows-latest
20+
solution: src/UnoPropertyGrid.slnx
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
submodules: recursive
26+
- name: Setup .NET
27+
uses: actions/setup-dotnet@v4
28+
with:
29+
dotnet-version: '10.x'
30+
- name: Build (Windows)
31+
if: runner.os == 'Windows'
32+
run: ./build.windows.bat Release
33+
- name: Build (macOS/Linux)
34+
if: runner.os != 'Windows'
35+
run: dotnet build -c Release ${{ matrix.solution }}
36+
- name: Run unit tests
37+
run: dotnet test --no-build -c Release --verbosity minimal ${{ matrix.solution }}

0 commit comments

Comments
 (0)