Unit Tests #46
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |