Skip to content

[CI] Add unity test runner #35

[CI] Add unity test runner

[CI] Add unity test runner #35

Workflow file for this run

name: Test
on:
workflow_dispatch:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
test-dotnet:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
- run: dotnet build -c Debug
- run: dotnet test -c Debug --no-build
test-unity:

Check failure on line 24 in .github/workflows/test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yaml

Invalid workflow file

You have an error in your yaml syntax on line 24
runs-on: ubuntu-latest
strategy:
matrix:
unityVersion:
- 2022.2.21f1
include:
- unityVersion: 2022.2.21f1
license: UNITY_LICENSE_2022_2
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ViralRouter/Library
key: Library-VitalRouter #-${{ matrix.unityVersion }}-${{ matrix.feature }}
restore-keys: |
Library-ViralRouter-
Library-
- uses: game-ci/unity-test-runner@v4
env:
UNITY_LICENSE: ${{ secrets[matrix.license] }}
with:
projectPath: ./VitalRouter/Unity
githubToken: ${{ secrets.GITHUB_TOKEN }}