Skip to content

Commit

Permalink
Merge branch 'development/v3' of https://github.com/YarnSpinnerTool/Y…
Browse files Browse the repository at this point in the history
…arnSpinner-Unity into development/v3
  • Loading branch information
desplesda committed May 21, 2024
2 parents b51bc70 + e0a9fef commit 98755d2
Showing 1 changed file with 38 additions and 35 deletions.
73 changes: 38 additions & 35 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ env:
on:
push:
branches:
- main
- develop
- 'feature/**'
- main
- development/v3
- 'feature/**'
paths:
- 'Editor/**'
- 'Runtime/**'
Expand All @@ -20,24 +20,24 @@ on:
jobs:
buildAndTestForSomePlatforms:
concurrency:
group: ${{ github.workflow }}
group: ${{ github.workflow }}-${{ matrix.unityVersion }}
cancel-in-progress: true # Cancel other jobs if another one arrives
name: Test on ${{ matrix.unityVersion }} for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
runs-on: [self-hosted, linux]
strategy:
fail-fast: false
max-parallel: 1 # Only run one at a time, to prevent license contention
# max-parallel: 1 # Only run one at a time, to prevent license contention
matrix:
projectPath:
- YarnSpinner
unityVersion:
- 2021.3.1f1
- 2022.2.1f1
- 2023.1.1f1
- 2021.3.35f1
- 2022.3.21f1
- 2023.2.12f1
targetPlatform:
# - StandaloneOSX # Build a macOS standalone (Intel 64-bit).
- StandaloneWindows64 # Build a Windows 64-bit standalone.
# - StandaloneLinux64 # Build a Linux 64-bit standalone.
# - StandaloneWindows64 # Build a Windows 64-bit standalone.
- StandaloneLinux64 # Build a Linux 64-bit standalone.
# - iOS # Build an iOS player.
# - Android # Build an Android player.
# - WebGL # WebGL.
Expand All @@ -47,6 +47,7 @@ jobs:
mkdir -p ${{ matrix.projectPath }}/Assets
mkdir -p ${{ matrix.projectPath }}/ProjectSettings
mkdir -p ${{ matrix.projectPath }}/Packages
mkdir -p output
# Add the Unity Input System package, and configure the new project to use
# both the Input System and the legacy Input Manager.
Expand Down Expand Up @@ -74,33 +75,35 @@ jobs:
with:
fetch-depth: 0
path: ${{ matrix.projectPath }}/Packages/YarnSpinner

- name: Fetch from Cache
uses: actions/cache@v2
with:
path: ${{ matrix.projectPath }}/Library
key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{ matrix.unityVersion }}-${{ hashFiles(matrix.projectPath) }}
restore-keys: |
Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{ matrix.unityVersion }}-
- name: Run tests
uses: game-ci/unity-test-runner@v4
id: testRunner
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
checkName: 'Test Results ${{ matrix.unityVersion }}-${{ matrix.targetPlatform }}'
# customParameters: -quit


- name: Run edit mode tests
run: |
docker run \
--rm \
-v ./${{ matrix.projectPath }}:/project \
-v ./output:/output \
-e TEST_MODE=EditMode \
--hostname YS-Linux-Build \
yarnspinner/unity-${{ matrix.unityVersion }}
- name: Run play mode tests
if: always()
run: |
docker run \
--rm \
-v ./${{ matrix.projectPath }}:/project \
-v ./output:/output \
-e TEST_MODE=PlayMode \
--hostname YS-Linux-Build \
yarnspinner/unity-${{ matrix.unityVersion }}
- name: Upload test results
uses: actions/upload-artifact@v2
if: always()
with:
name: Test results (edit + play, ${{ matrix.unityVersion }}-${{ matrix.targetPlatform }}
# path: ${{ steps.testRunner.outputs.artifactsPath }}
path: artifacts
path: ./output



0 comments on commit 98755d2

Please sign in to comment.