Skip to content

Commit

Permalink
Test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Macoron committed May 19, 2023
1 parent 4d1cc3c commit 5084cd3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on: [push, pull_request]

jobs:
testAllModes:
name: Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: game-ci/unity-test-runner@v2
id: tests
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
artifactsPath: ${{ matrix.testMode }}-artifacts
githubToken: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v2
if: always()
with:
name: Test results
path: ${{ steps.tests.outputs.artifactsPath }}
- uses: actions/upload-artifact@v2
if: always()
with:
name: Coverage results
path: ${{ steps.tests.outputs.coveragePath }}

0 comments on commit 5084cd3

Please sign in to comment.