Skip to content

unity-cli@v3.0.1

unity-cli@v3.0.1 #630

name: integration-tests
on:
push:
branches: ['main']
pull_request:
branches: ['**']
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
utp-batch-contract:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: UTP batch assertion helpers (contract)
run: bash tests/run-utp-tests-contract.sh
setup:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
permissions:
contents: read
checks: write # to publish unit test results via checks github api
steps:
- uses: actions/checkout@v6
with:
sparse-checkout: .github/
- uses: RageAgainstThePixel/job-builder@v1
id: setup-jobs
with:
build-options: ./.github/workflows/build-options.json
group-by: unity-version
outputs:
jobs: ${{ steps.setup-jobs.outputs.jobs }}
validate:
if: ${{ needs.setup.outputs.jobs }}
needs: setup
name: build ${{ matrix.jobs.name }}
permissions:
contents: read
checks: write # required by nested unity-build workflow
strategy:
matrix: ${{ fromJSON(needs.setup.outputs.jobs) }}
fail-fast: false
max-parallel: 1
secrets: inherit
uses: ./.github/workflows/unity-build.yml
with:
matrix: ${{ toJSON(matrix.jobs.matrix) }}
utp-test-profile: normal
validate-negative-scenarios:
if: github.event.pull_request.draft == false
name: build negative-scenarios
permissions:
contents: read
checks: write
secrets: inherit
uses: ./.github/workflows/unity-build.yml
with:
matrix: '{"include":[{"os":"ubuntu-latest","unity-version":"6000.1","build-target":"StandaloneLinux64","name":"negative-scenarios / ubuntu-latest StandaloneLinux64"}]}'
utp-test-profile: negative
timeline:
needs: [setup, validate, validate-negative-scenarios]
if: always()
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: Kesin11/actions-timeline@44c9c178ffb2fb1d9859614a3ffa79ccfb77565e # v3.1.0
continue-on-error: true