Skip to content

Commit 845753e

Browse files
authored
GitHub PR - test workflow (#31)
* Add PR test workflow (for windows and linux) * Target 2022 for windows runner
1 parent 2a12933 commit 845753e

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Run Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- develop
8+
9+
jobs:
10+
test-linux:
11+
runs-on: ubuntu-latest
12+
container:
13+
image: mcr.microsoft.com/dotnet/sdk:10.0
14+
steps:
15+
- uses: actions/checkout@v5
16+
17+
- name: Restore Dependencies (ubuntu)
18+
run: dotnet restore
19+
20+
- name: Build (ubuntu)
21+
run: dotnet build --configuration Release --no-restore
22+
23+
- name: Test (ubuntu)
24+
run: dotnet test --configuration Release --no-build
25+
26+
test-windows:
27+
runs-on: windows-2022
28+
steps:
29+
- uses: actions/checkout@v5
30+
31+
- name: Setup .NET
32+
uses: actions/setup-dotnet@v5
33+
with:
34+
dotnet-version: 10.0.x
35+
36+
- name: Restore Dependencies (windows)
37+
run: dotnet restore
38+
39+
- name: Build (windows)
40+
run: dotnet build --configuration Release --no-restore
41+
42+
- name: Test (windows)
43+
run: dotnet test --configuration Release --no-build

0 commit comments

Comments
 (0)