mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-02-01 03:02:56 +08:00
ci: Enable 2022 tests
This commit is contained in:
parent
9964c024ec
commit
caf627926e
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.vrchat.avatars": {
|
"com.vrchat.avatars": {
|
||||||
"version": "3.2.0"
|
"version": "3.4.2"
|
||||||
},
|
},
|
||||||
"nadena.dev.ndmf": {
|
"nadena.dev.ndmf": {
|
||||||
"version": "0.3.0"
|
"version": "0.3.0"
|
||||||
@ -9,13 +9,13 @@
|
|||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"com.vrchat.avatars": {
|
"com.vrchat.avatars": {
|
||||||
"version": "3.4.0",
|
"version": "3.4.2",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.vrchat.base": "3.4.0"
|
"com.vrchat.base": "3.4.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"com.vrchat.base": {
|
"com.vrchat.base": {
|
||||||
"version": "3.4.0",
|
"version": "3.4.2",
|
||||||
"dependencies": {}
|
"dependencies": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
22
.github/ProjectRoot/vpm-manifest.json
vendored
Normal file
22
.github/ProjectRoot/vpm-manifest.json
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"com.vrchat.avatars": {
|
||||||
|
"version": "3.5.0"
|
||||||
|
},
|
||||||
|
"nadena.dev.ndmf": {
|
||||||
|
"version": "0.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"com.vrchat.avatars": {
|
||||||
|
"version": "3.5.0",
|
||||||
|
"dependencies": {
|
||||||
|
"com.vrchat.base": "3.5.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"com.vrchat.base": {
|
||||||
|
"version": "3.5.0",
|
||||||
|
"dependencies": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
32
.github/workflows/gameci.yml
vendored
32
.github/workflows/gameci.yml
vendored
@ -45,17 +45,30 @@ jobs:
|
|||||||
name: Unit tests
|
name: Unit tests
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
unity_version: [ auto ]
|
unity_major_version: [ 2019, 2022 ]
|
||||||
sdk: [ vrcsdk ]
|
sdk: [ vrcsdk ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
checks: write
|
checks: write
|
||||||
contents: read
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
|
- id: configure
|
||||||
|
name: Configure
|
||||||
|
env:
|
||||||
|
unity_major_version: ${{ matrix.unity_major_version }}
|
||||||
|
run: |
|
||||||
|
if [ $unity_major_version == 2019 ]; then
|
||||||
|
echo "unity_version=2019.4.31f1" >> $GITHUB_ENV
|
||||||
|
elif [ $unity_major_version == 2022 ]; then
|
||||||
|
echo "unity_version=2022.3.6f1" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "Invalid unity_major_version: $unity_major_version"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
- id: setup
|
- id: setup
|
||||||
name: Setup
|
name: Setup
|
||||||
env:
|
env:
|
||||||
unity_version: ${{ matrix.unity_version }}
|
unity_version: ${{ steps.configure.outputs.unity_version }}
|
||||||
sdk: ${{ matrix.sdk }}
|
sdk: ${{ matrix.sdk }}
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
@ -63,13 +76,10 @@ jobs:
|
|||||||
sudo apt-get install xmlstarlet -y
|
sudo apt-get install xmlstarlet -y
|
||||||
|
|
||||||
should_test=true
|
should_test=true
|
||||||
if [ $sdk == vrcsdk ] && [ $unity_version != auto ]; then
|
|
||||||
should_test=false
|
|
||||||
fi
|
|
||||||
echo should_test=$should_test >> $GITHUB_OUTPUT
|
echo should_test=$should_test >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
can_fail=false
|
can_fail=false
|
||||||
if [ $sdk == standalone ] || [ $unity_version != auto ]; then
|
if [ $sdk == standalone ]; then
|
||||||
can_fail=$should_test
|
can_fail=$should_test
|
||||||
fi
|
fi
|
||||||
echo can_fail=$can_fail >> $GITHUB_OUTPUT
|
echo can_fail=$can_fail >> $GITHUB_OUTPUT
|
||||||
@ -117,7 +127,7 @@ jobs:
|
|||||||
if: ${{ steps.setup.outputs.should_test == 'true' }}
|
if: ${{ steps.setup.outputs.should_test == 'true' }}
|
||||||
with:
|
with:
|
||||||
path: Library
|
path: Library
|
||||||
key: Library-${{ matrix.unity_version }}-${{ matrix.sdk }}
|
key: Library-${{ steps.configure.outputs.unity_version }}-${{ matrix.sdk }}
|
||||||
restore-keys: Library-
|
restore-keys: Library-
|
||||||
|
|
||||||
- uses: game-ci/unity-test-runner@v3
|
- uses: game-ci/unity-test-runner@v3
|
||||||
@ -129,7 +139,7 @@ jobs:
|
|||||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
with:
|
with:
|
||||||
testMode: EditMode
|
testMode: EditMode
|
||||||
unityVersion: ${{ matrix.unity_version }}
|
unityVersion: ${{ steps.configure.outputs.unity_version }}
|
||||||
githubToken: ${{ github.token }}
|
githubToken: ${{ github.token }}
|
||||||
coverageOptions: generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+nadena.dev.*
|
coverageOptions: generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+nadena.dev.*
|
||||||
customParameters: -nographics -assemblyNames Tests
|
customParameters: -nographics -assemblyNames Tests
|
||||||
@ -141,7 +151,7 @@ jobs:
|
|||||||
name: Determine conclusion
|
name: Determine conclusion
|
||||||
if: ${{ steps.setup.outputs.should_test == 'true' }}
|
if: ${{ steps.setup.outputs.should_test == 'true' }}
|
||||||
env:
|
env:
|
||||||
unity_version: ${{ matrix.unity_version }}
|
unity_version: ${{ steps.configure.outputs.unity_version }}
|
||||||
sdk_platform: ${{ matrix.sdk }}
|
sdk_platform: ${{ matrix.sdk }}
|
||||||
gameci_outcome: ${{ steps.gameci.outcome }}
|
gameci_outcome: ${{ steps.gameci.outcome }}
|
||||||
can_fail: ${{ steps.setup.outputs.can_fail }}
|
can_fail: ${{ steps.setup.outputs.can_fail }}
|
||||||
@ -175,8 +185,8 @@ jobs:
|
|||||||
echo matrix_output=$output >> $GITHUB_OUTPUT
|
echo matrix_output=$output >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
if: ${{ steps.setup.outputs.should_test == 'true' && matrix.sdk == 'vrcsdk' && matrix.unity_version == 'auto' }}
|
if: ${{ steps.setup.outputs.should_test == 'true' && matrix.sdk == 'vrcsdk' }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
name: Coverage results ${{ matrix.unity_version }} ${{ matrix.sdk }}
|
name: Coverage results ${{ steps.configure.outputs.unity_version }} ${{ matrix.sdk }}
|
||||||
path: ${{ steps.gameci.outputs.coveragePath }}
|
path: ${{ steps.gameci.outputs.coveragePath }}
|
Loading…
Reference in New Issue
Block a user