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 758638d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/unity-project/ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -622,11 +622,9 @@ PlayerSettings:
webGLThreadsSupport: 0
webGLWasmStreaming: 0
scriptingDefineSymbols:
1: VRC_SDK_VRCSDK3
platformArchitecture: {}
scriptingBackend: {}
il2cppCompilerConfiguration:
Standalone: 1
managedStrippingLevel: {}
incrementalIl2cppBuild: {}
suppressCommonWarnings: 1
Expand Down
19 changes: 18 additions & 1 deletion .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:
unity-version: ['2019.4.31f1', '2021.3.33f1', '2022.3.6f1', '2022.3.15f1']
build-type: ['pure', 'vrcsdk']
exclude:
- unity-version: "2021.3.33f1"
build-type: "vrcsdk"
- unity-version: "2022.3.15f1"
build-type: "vrcsdk"
steps:
# Checkout
- name: Checkout repository
Expand All @@ -31,7 +40,7 @@ jobs:
mv [!.github]* .github/unity-project/Packages/com.chocopoi.vrc.avatarlib/
mv .github/unity-project/* .
rm -rf .github/unity-project
ls -l
ls -l
ls -l Packages/com.chocopoi.vrc.avatarlib
# Cache
Expand All @@ -43,17 +52,25 @@ jobs:
Library-
- name: Resolve VPM Project
if: matrix.build-type == 'vrcsdk'
run: |
dotnet tool install --global vrchat.vpm.cli
vpm resolve project
- name: Remove VPM Resolver
if: matrix.build-type != 'vrcsdk'
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:
checkName: Test Results (${{ matrix.unity-version }}, ${{ matrix.build-type }})
unityVersion: ${{ matrix.unity-version }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
testMode: 'all'
customParameters: '-assemblyNames "com.chocopoi.vrc.avatarlib.Editor.Tests" -nographics'
Expand Down

0 comments on commit 758638d

Please sign in to comment.