-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 949 Bytes
/
unit-tests.yaml
File metadata and controls
39 lines (33 loc) · 949 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: Unit Tests
on:
pull_request:
workflow_dispatch:
env:
TEST_PROJECT: tests/Pulse.Tests/Pulse.Tests.csproj
TEST_ARTIFACTS: tests/Pulse.Tests/artifacts/
TEST_RUNNER: tests/Pulse.Tests/artifacts/Pulse.Tests
jobs:
unit-tests:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
- os: macos-latest
- os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Publish native AOT test runner
run: |
dotnet publish ${{ env.TEST_PROJECT }} -c Release -o "${{ env.TEST_ARTIFACTS }}"
- name: Run published tests
shell: bash
run: |
exe="${{ env.TEST_RUNNER }}"
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then exe="$exe.exe"; fi
"$exe"