-
Notifications
You must be signed in to change notification settings - Fork 33
32 lines (30 loc) · 920 Bytes
/
build.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 and test
on:
push:
branches:
- 'master'
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [ windows-latest, ubuntu-latest, macos-14 ]
steps:
- uses: actions/checkout@v4
- name: Setup .NET 8.0 and 9.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Install dependencies
run: dotnet restore Messaging.sln
- name: Build
run: dotnet build Messaging.sln --configuration Release --no-restore
- name: Unit tests
run: |
dotnet test "./test/Helsenorge.Messaging.Tests/Helsenorge.Messaging.Tests.csproj"
dotnet test "./test/Helsenorge.Registries.Tests/Helsenorge.Registries.Tests.csproj"
dotnet test "./test/Helsenorge.Messaging.AdminLib.Tests/Helsenorge.Messaging.AdminLib.Tests.csproj"