Skip to content

Tests

Tests #15

Workflow file for this run

name: Tests
on:
pull_request:
branches: [ "main" ]
workflow_dispatch:
workflow_call:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: ./.github/actions/setup-dotnet
- name: Restore dependencies
run: dotnet restore src/UnityCommandLineLauncher.sln
- name: Build
run: dotnet build src/UnityCommandLineLauncher.sln --no-restore
- name: Test
run: dotnet test src/UnityCommandLineLauncher.sln --no-build --collect:"XPlat Code Coverage"
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}