Upgrade Unity to v2022.3.8 LTS and upgrade UMVC.Core dependencies #228
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: UMVC.Editor | |
# Ref: https://gist.github.com/chatrat12/9780fffe59bc46a63bc0b9b665489e08 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
name: Test UMVC.Editor 🧪 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait for build to succeed | |
uses: fountainhead/action-wait-for-check@v1.1.0 | |
id: wait-for-build | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
checkName: Build UMVC.Core 🏗️ | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Is UMVC.Core failing? | |
if: ${{ steps.wait-for-build.outputs.conclusion == 'failure' }} | |
run: echo "::error There is a problem with your UMVC.Core build! Exiting!!" && exit 1 | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install python3-pip unzip curl -y && pip install requests | |
- name: Download UMVC.Core Build | |
run: python .github/workflows/scripts/downloadArtifacts.py ${{ secrets.PERSONAL_TOKEN }} | |
- name: Unzip and move UMVC.Core dlls | |
run: sh .github/workflows/scripts/install-umvc.editor-deps.sh | |
# Test edit mode | |
- name: Run playmode & editmode tests | |
uses: game-ci/unity-test-runner@v2 | |
id: tests | |
env: | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
unityVersion: 2022.3.8 | |
testMode: All | |
coverageOptions: useProjectSettings;generateAdditionalMetrics | |
customParameters: -debugCodeOptimization -enableCodeCoverage | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ${{ steps.tests.outputs.coveragePath }}/**/*.xml | |
fail_ci_if_error: true | |