mirror of
https://github.com/Earth-Genesis-Games/Ajedrez_Purgatorio.git
synced 2026-09-11 09:47:35 +00:00
68 lines
1.8 KiB
YAML
68 lines
1.8 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: Unity Test Runner (${{ matrix.unityVersion }})
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
unityVersion:
|
|
- 6000.3.13f1
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
lfs: true
|
|
|
|
- name: Checkout LFS objects
|
|
run: git lfs checkout
|
|
|
|
- name: Free disk space
|
|
run: |
|
|
sudo rm -rf /usr/local/lib/android \
|
|
/usr/share/dotnet \
|
|
/usr/local/.ghc \
|
|
/opt/ghc \
|
|
/usr/local/share/boost \
|
|
/usr/lib/jvm \
|
|
/opt/hostedtoolcache/CodeQL \
|
|
/usr/local/swift \
|
|
/usr/share/php || true
|
|
sudo docker image prune -af || true
|
|
df -h /
|
|
|
|
- name: Cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: Library
|
|
key: Library-${{ matrix.unityVersion }}-${{ runner.os }}-${{ hashFiles('Packages/manifest.json') }}
|
|
restore-keys: |
|
|
Library-${{ matrix.unityVersion }}-${{ runner.os }}-
|
|
|
|
- name: Run tests (batchmode)
|
|
uses: game-ci/unity-test-runner@v4
|
|
env:
|
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
|
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
with:
|
|
projectPath: .
|
|
unityVersion: ${{ matrix.unityVersion }}
|
|
testMode: all
|
|
artifactsPath: artifacts
|
|
|
|
- name: Upload test results
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: TestResults-${{ matrix.unityVersion }}
|
|
path: artifacts
|
|
if-no-files-found: error
|