Skip to content

Init package and update to latest core #2

Init package and update to latest core

Init package and update to latest core #2

name: Build and test UPM packages for platforms, all branches except main
on:
pull_request:
branches-ignore:
- 'main'
# Ignore PRs targeting main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
# Check Unity version required by the package
validate-environment:
name: Get Unity Version from UPM package
uses: realitycollective/reusableworkflows/.github/workflows/getunityversionfrompackage.yml@v2
with:
build-host: ubuntu-latest
# Check Unity Hub and Editor Environment
Validate-Unity:
name: Validate Unity Install
needs: validate-environment
uses: realitycollective/reusableworkflows/.github/workflows/validateunityinstall.yml@v2
with:
build-target: windows
unityversion: ${{ needs.validate-environment.outputs.unityversion }}
# Run Unity unit tests defined in the package
Run-Unit-Tests:
name: Run Unity Unit Tests
needs: Validate-Unity
uses: realitycollective/reusableworkflows/.github/workflows/rununityUPMbuild.yml@v2
with:
unityversion: ${{ needs.Validate-Unity.outputs.unityeditorversion }}
dependencies: '[{"development": "github.com/realitycollective/com.realitycollective.buildtools.git"},{"development": "github.com/realitycollective/com.realitytoolkit.core.git"},{"development": "github.com/realitycollective/com.realitycollective.utilities.git"},{"development": "github.com/realitycollective/com.realitycollective.service-framework.git"},{"development": "github.com/realitycollective/com.realitytoolkit.player.git"},{"development": "github.com/realitycollective/com.realitytoolkit.boundary.git"}]'
secrets: inherit