SDK-589 - Adds package install event #136
Workflow file for this run
This file contains 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: Run Tests | |
on: | |
pull_request: | |
types: [ opened, reopened ] | |
workflow_dispatch: | |
jobs: | |
runAllTests: | |
name: ${{ matrix.unityVersion }} ${{ matrix.testMode }} tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: false | |
matrix: | |
testMode: | |
- playmode | |
- editmode | |
unityVersion: | |
- 2020.3.16f1 | |
steps: | |
- name: Checkout Unity-SDK Repository | |
uses: actions/checkout@v3 | |
with: | |
repository: "readyplayerme/Unity-SDK" | |
submodules: true | |
fetch-depth: 0 | |
ref: develop | |
token: ${{ secrets.DEV_SDK_TOKEN }} | |
- name: Checkout submodule branch | |
run: | | |
cd Assets/Ready\ Player\ Me/Core | |
git fetch -a | |
git checkout ${{ github.event.pull_request.head.ref }} | |
git pull origin ${{ github.event.pull_request.head.ref }} | |
- name: Cache Project | |
uses: actions/cache@v3 | |
with: | |
path: Library | |
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | |
restore-keys: | | |
Library- | |
- name: Run Tests | |
uses: game-ci/unity-test-runner@v2 | |
env: | |
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | |
with: | |
unityVersion: ${{ matrix.unityVersion }} | |
testMode: ${{ matrix.testMode }} | |
projectPath: ${{ matrix.projectPath }} | |
checkName: ${{ matrix.unityVersion }} ${{ matrix.testMode }} tests result | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
customParameters: | | |
assemblyNames "ReadyPlayerMe.Core.Editor.Tests;ReadyPlayerMe.Tests.Editor;ReadyPlayerMe.Tests.Runtime" | |
coverageOptions: "generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+ReadyPlayerMe.*" |