Skip to content

chore: do not add GlobalActivator if there are no avatars in the scene #754

chore: do not add GlobalActivator if there are no avatars in the scene

chore: do not add GlobalActivator if there are no avatars in the scene #754

Workflow file for this run

name: GameCI
on:
push:
branches: [master]
pull_request_target: {}
workflow_dispatch: {}
jobs:
build-and-test:
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- uses: actions/checkout@v3
with:
ref: project-for-test
- uses: actions/checkout@v3
with:
path: Packages/com.anatawa12.avatar-optimizer
ref: ${{ github.event.pull_request.head.sha }}
- uses: anatawa12/sh-actions/resolve-vpm-packages@master
with:
repos: |
https://vpm.anatawa12.com/vpm.json
- uses: actions/cache@v3
with:
path: Library
key: Library-${{ matrix.projectPath }}
restore-keys: Library-
- uses: game-ci/unity-test-runner@v2
id: gameci
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
testMode: EditMode
githubToken: ${{ github.token }}
coverageOptions: generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+com.anatawa12.avatar-optimizer.*
customParameters: -nographics -assemblyNames com.anatawa12.avatar-optimizer.test
- uses: actions/upload-artifact@v3
if: always()
with:
name: Test results
path: ${{ steps.gameci.outputs.artifactsPath }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: Coverage results
path: ${{ steps.gameci.outputs.coveragePath }}