-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 845 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
33
name: Test
on: [push, pull_request]
jobs:
test:
# name: Run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
fail-fast: false
timeout-minutes: 30
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
if: ${{ contains(matrix.os, 'windows') }}
- name: Run the test script
shell: pwsh
run: ./test.ps1
- name: Upload the failed test logs
uses: actions/upload-artifact@v4
with:
name: testlogs-${{ matrix.os }}
path: ./test-logs/
if: ${{ failure() }}