Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ jobs:
check-license:
name: Check for Unity License
runs-on: ubuntu-latest
outputs:
is_unity_license_set: ${{ steps.check-license.outputs.is_unity_license_set }}
steps:
- name: Check whether Unity Activation requests should be done
id: check-license
run: |
echo "Skip activation job: ${{ env.UNITY_LICENSE != '' }}"
echo "::set-output name=is_unity_license_set::${{ env.UNITY_LICENSE != '' }}"
- name: Fail build if no unity license set
if: ${{ env.UNITY_LICENSE == '' }}
uses: actions/github-script@v6
with:
script: |
core.setFailed('No unity license secret set')

build:
name: Build for ${{ matrix.targetPlatform }}
Expand Down
39 changes: 18 additions & 21 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,22 @@ env:
PROJECT_PATH: Test
PROJECT_NAME: Test

jobs:
jobs:
check-license:
name: Check for Unity License
runs-on: ubuntu-latest
outputs:
is_unity_license_set: ${{ steps.check-license.outputs.is_unity_license_set }}
steps:
- name: Check whether Unity Activation requests should be done
id: check-license
run: |
echo "Skip activation job: ${{ env.UNITY_LICENSE != '' }}"
echo "::set-output name=is_unity_license_set::${{ env.UNITY_LICENSE != '' }}"
- name: Fail build if no unity license set
if: ${{ env.UNITY_LICENSE == '' }}
uses: actions/github-script@v6
with:
script: |
core.setFailed('No unity license secret set')

test-all-modes:
test:
name: Run EditMode and PlayMode Tests
runs-on: ubuntu-latest
needs: [check-license]
if: ${{ needs.check-license.outputs.is_unity_license_set == 'true' }}
strategy:
fail-fast: true
steps:
Expand Down Expand Up @@ -66,28 +64,27 @@ jobs:
customParameters: -debugCodeOptimization
coverageOptions: 'generateAdditionalMetrics'

- name: Upload Results
- name: Publish Test Results
uses: actions/upload-artifact@v3.1.1
if: always()
with:
name: Test Results (All)
path: ${{ steps.tests.outputs.artifactsPath }}

# - name: Upload XML report to Codecov
# uses: codecov/codecov-action@v3
# with:
# name: Code Coverage Results (All)
# flags: automated
# token: ${{ secrets.CODECOV_TOKEN }}
# files: CodeCoverage/**/*.xml
# fail_ci_if_error: true
# verbose: true
# - name: Publish Code Coverage
# uses: codecov/codecov-action@v3
# with:
# name: Code Coverage Results (All)
# flags: automated
# token: ${{ secrets.CODECOV_TOKEN }}
# files: CodeCoverage/**/*.xml
# fail_ci_if_error: true
# verbose: true

build:
name: Build for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
needs: [check-license]
if: ${{ needs.check-license.outputs.is_unity_license_set == 'true' }}
strategy:
fail-fast: false
matrix:
Expand Down