Skip to content

test 2021 and 2022 unity versions #3

test 2021 and 2022 unity versions

test 2021 and 2022 unity versions #3

Workflow file for this run

name: Test package
on: [push, pull_request]
jobs:
testEditMode:
name: Test in ${{matrix.testMode}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- Packages
unityVersion:
- 2021.3.29f1
- 2022.3.13f1
testMode:
- editmode
steps:
# Checkout
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
# Cache
- uses: actions/cache@v3
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
# Test
- name: Run tests
uses: game-ci/unity-test-runner@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
packageMode: true #runs tests on packages rather than main proj