-
Notifications
You must be signed in to change notification settings - Fork 60
41 lines (31 loc) · 971 Bytes
/
unit-testing.yml
File metadata and controls
41 lines (31 loc) · 971 Bytes
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
name: Unit testing (Windows / MSBuild)
on:
workflow_dispatch:
push:
branches: ["master"]
pull_request:
branches: ["master"]
schedule:
- cron: "0 0 * * 0" # weekly, Sunday 00:00 UTC
permissions:
contents: read
jobs:
test:
runs-on: windows-latest
env:
SOLUTION_NAME: TechnitiumLibrary.sln
BUILD_CONFIGURATION: Debug
steps:
- uses: actions/checkout@v4
- name: Install .NET 9 SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Restore
run: msbuild ${{ env.SOLUTION_NAME }} /t:Restore
- name: Build
run: msbuild ${{ env.SOLUTION_NAME }} /m /p:Configuration=${{ env.BUILD_CONFIGURATION }}
- name: Test (msbuild)
run: msbuild TechnitiumLibrary.UnitTests\TechnitiumLibrary.UnitTests.csproj /t:Test /p:Configuration=${{ env.BUILD_CONFIGURATION }}