-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 863 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Build
on: [push, pull_request]
jobs:
build-Ubuntu_and_MacOs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: Build
run: for f in $(find . -name "* sln"); do dotnet build $f; done
- name: Run tests
run: for f in $(find . -name "*.sln"); do dotnet test $f; done
build-Windows:
runs-on: windows-latest
defaults:
run:
shell: cmd
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: Build
run: For /R %%I in (*.sln) do dotnet build %%I
- name: Run tests
run: For /R %%I in (*.sln) do dotnet test %%I