Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
poi-vrc committed Dec 12, 2023
1 parent 7744646 commit cbeeff2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/unity-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
unityVersion: ["2019.4", "2021.3", "2022.3"]
include:
- unityVersion: "2019.4"
- unityVersion: "2019.4"
platform: "vrchat"
- unityVersion: "2021.3"
- unityVersion: "2022.3"
steps:
# Checkout
- name: Checkout repository
Expand Down Expand Up @@ -43,17 +52,24 @@ jobs:
Library-
- name: Resolve VPM Project
if: matrix.platform == 'vrchat'
run: |
dotnet tool install --global vrchat.vpm.cli
vpm resolve project
- name: Remove VPM Resolver
if: matrix.platform != 'vrchat'
run: |
rm -rfv Packages/com.vrchat.*
# Test
- name: Run tests
uses: game-ci/unity-test-runner@v2
id: tests
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
unityVersion: ${{ matrix.unityVersion }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
testMode: 'all'
customParameters: '-assemblyNames "com.chocopoi.vrc.avatarlib.Editor.Tests" -nographics'
Expand Down

0 comments on commit cbeeff2

Please sign in to comment.