-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 1001 Bytes
/
Copy pathsynix-tests.yml
File metadata and controls
39 lines (30 loc) · 1001 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
name: Synix automated tests
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
name: Windows test suite
runs-on: windows-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install .NET 8 SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore "SynixApp/Tests/Synix.Tests.csproj"
- name: Build tests
run: dotnet build "SynixApp/Tests/Synix.Tests.csproj" --configuration Release --no-restore
- name: Run tests
run: dotnet test "SynixApp/Tests/Synix.Tests.csproj" --configuration Release --no-build --logger "trx;LogFileName=synix-tests.trx" --results-directory "TestResults"
- name: Upload failed test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: synix-test-results
path: TestResults
if-no-files-found: ignore