-
Notifications
You must be signed in to change notification settings - Fork 21
51 lines (40 loc) · 1.11 KB
/
run-unit-tests.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Unit tests
on:
push:
branches:
- 3.x.x-dev
pull_request:
branches:
- 3.x.x-dev
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
dotnet-version: ['6.0', '7.0', '8.0', '9.0']
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0'
- name: Setup .NET 7 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0'
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0'
- name: Setup .NET 9 SDKs
uses: actions/setup-dotnet@v3
with:
dotnet-version: '9.0'
- name: Install dependencies
run: dotnet restore
- name: Build the solution
run: dotnet build --configuration Release
- name: Run unit tests
run: dotnet test smsapiTests/smsapiTests.csproj --configuration Release --no-build --verbosity normal --framework net${{ matrix.dotnet-version }}