Skip to content

[REG-1577] Prepare repository for public release #11

[REG-1577] Prepare repository for public release

[REG-1577] Prepare repository for public release #11

Workflow file for this run

name: Unity Build and Test
on:
# Build every commit to 'main'
push:
branches:
- main
# Build every PR
pull_request:
jobs:
test:
name: Unity Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: Activate Problem Matchers
run:
echo "::add-matcher::$GITHUB_WORKSPACE/.github/problemMatchers/unity-compile.json"
- name: Build Unity Project
id: build-unity-project
uses: game-ci/unity-builder@v4
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
projectPath: src/UnityHostGame
targetPlatform: StandaloneLinux64
- name: Run Unity Tests
id: run-unity-tests
uses: game-ci/unity-test-runner@v4
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
projectPath: src/UnityHostGame
githubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Test Results
uses: actions/upload-artifact@v3
if: always()
with:
name: Test results
path: ${{ steps.run-unity-tests.outputs.artifactsPath }}