Replaced webbertakken refs with game-ci and run tests in parallel. (#117)

* #116 - Replaced webbertakken refs with game-ci and run tests in parallel.

* Bring back missing projectPath
This commit is contained in:
Yan Loetzer
2021-07-12 17:01:51 +01:00
committed by GitHub
parent 4458c294f6
commit 081d72c50b

View File

@@ -39,13 +39,13 @@ jobs:
# Test # Test
- name: Run tests - name: Run tests
uses: webbertakken/unity-test-runner@v2 uses: game-ci/unity-test-runner@v2
with: with:
projectPath: test-projects/test-project projectPath: test-projects/test-project
# Build # Build
- name: Build project - name: Build project
uses: webbertakken/unity-builder@v2 uses: game-ci/unity-builder@v2
with: with:
projectPath: test-projects/test-project projectPath: test-projects/test-project
targetPlatform: WebGL targetPlatform: WebGL
@@ -70,7 +70,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# Request manual activation file # Request manual activation file
- uses: webbertakken/unity-request-manual-activation-file@v2 - uses: game-ci/unity-request-activation-file@v2
id: getManualLicenseFile id: getManualLicenseFile
# Upload artifact (Unity_v20XX.X.XXXX.alf) # Upload artifact (Unity_v20XX.X.XXXX.alf)
@@ -84,15 +84,15 @@ jobs:
# runs-on: ubuntu-latest # runs-on: ubuntu-latest
# steps: # steps:
# - uses: actions/checkout@v2 # - uses: actions/checkout@v2
# - uses: webbertakken/unity-activate@v2 # - uses: game-ci/unity-activate@v2
# #
# activateAndThenReturnLicense: # activateAndThenReturnLicense:
# name: returnLicense 🎈 # name: returnLicense 🎈
# runs-on: ubuntu-latest # runs-on: ubuntu-latest
# steps: # steps:
# - uses: actions/checkout@v2 # - uses: actions/checkout@v2
# - uses: webbertakken/unity-activate@v2 # - uses: game-ci/unity-activate@v2
# - uses: webbertakken/unity-return-license@v2 # - uses: game-ci/unity-return-license@v2
testRunnerInEditMode: testRunnerInEditMode:
name: Test in editmode 📝 name: Test in editmode 📝
@@ -126,7 +126,7 @@ jobs:
Library-test- Library-test-
# Configure test runner # Configure test runner
- uses: webbertakken/unity-test-runner@v2 - uses: game-ci/unity-test-runner@v2
id: testRunner id: testRunner
with: with:
projectPath: test-projects/test-project projectPath: test-projects/test-project
@@ -171,7 +171,7 @@ jobs:
Library- Library-
# Configure test runner # Configure test runner
- uses: webbertakken/unity-test-runner@v2 - uses: game-ci/unity-test-runner@v2
id: testRunner id: testRunner
with: with:
projectPath: test-projects/test-project projectPath: test-projects/test-project
@@ -184,8 +184,14 @@ jobs:
path: ${{ steps.testRunner.outputs.artifactsPath }} path: ${{ steps.testRunner.outputs.artifactsPath }}
testRunnerInAllModes: testRunnerInAllModes:
name: Test all modes name: Test in ${{ matrix.testMode }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testMode:
- EditMode
- PlayMode
steps: steps:
# Checkout repository (required to test local actions) # Checkout repository (required to test local actions)
- name: Checkout code - name: Checkout code
@@ -217,16 +223,18 @@ jobs:
Library- Library-
# Configure test runner # Configure test runner
- uses: webbertakken/unity-test-runner@v2 - uses: game-ci/unity-test-runner@v2.0-alpha-5
id: testRunner id: testRunner
with: with:
projectPath: test-projects/test-project projectPath: test-projects/test-project
testMode: all testMode: ${{ matrix.testMode }}
checkName: ${{ matrix.testMode }} test results
githubToken: ${{ secrets.GITHUB_TOKEN }}
# Upload artifacts # Upload artifacts
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: Test results (all modes) name: Test results (${{ matrix.testMode }})
path: ${{ steps.testRunner.outputs.artifactsPath }} path: ${{ steps.testRunner.outputs.artifactsPath }}
# #
@@ -275,7 +283,7 @@ jobs:
restore-keys: | restore-keys: |
Library-${{ matrix.projectPath }}-buildAndTest- Library-${{ matrix.projectPath }}-buildAndTest-
Library-${{ matrix.projectPath }}- Library-${{ matrix.projectPath }}-
- uses: webbertakken/unity-test-runner@v2 - uses: game-ci/unity-test-runner@v2
id: testRunner id: testRunner
with: with:
projectPath: ${{ matrix.projectPath }} projectPath: ${{ matrix.projectPath }}
@@ -283,7 +291,7 @@ jobs:
with: with:
name: Test results (all modes) name: Test results (all modes)
path: ${{ steps.testRunner.outputs.artifactsPath }} path: ${{ steps.testRunner.outputs.artifactsPath }}
- uses: webbertakken/unity-builder@v2 - uses: game-ci/unity-builder@v2
with: with:
projectPath: ${{ matrix.projectPath }} projectPath: ${{ matrix.projectPath }}
targetPlatform: ${{ matrix.targetPlatform }} targetPlatform: ${{ matrix.targetPlatform }}