Skip to content

test: constraint triangulation benchmark #118

test: constraint triangulation benchmark

test: constraint triangulation benchmark #118

Workflow file for this run

name: Tests
on:
pull_request: {}
push: { branches: [main] }
workflow_dispatch:
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
jobs:
testAllModes:
name: Test in ${{ matrix.testMode }} on version ${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
packageName:
- com.andywiecko.burst.triangulator
projectPath:
- Samples~/BurstTriangulatorTestProject
unityVersion:
- 2022.2.15f1
testMode:
- editmode
steps:
- uses: actions/checkout@v3
with:
lfs: true
- uses: actions/cache@v2
with:
path: ${{ matrix.projectPath }}/Library
key: Library-${{ matrix.projectPath }}
restore-keys: |
Library-
- name: Preparing sample project
run: |
echo "############################"
echo "# Preparing sample project #"
echo "############################"
echo "Creating dir ${{ matrix.projectPath }}/Packages/${{ matrix.packageName }}"
mkdir ${{ matrix.projectPath }}/Packages/${{ matrix.packageName }}
echo "Copying package data"
cp -r `ls -I Samples~` ${{ matrix.projectPath }}/Packages/${{ matrix.packageName }}
ls -alF ${{ matrix.projectPath }}/Packages/${{ matrix.packageName }}
- uses: game-ci/unity-test-runner@v2
id: tests
with:
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
testMode: ${{ matrix.testMode }}
artifactsPath: ${{ matrix.testMode }}-artifacts
- uses: actions/upload-artifact@v1
with:
name: Test results for ${{ matrix.testMode }}
path: ${{ steps.tests.outputs.artifactsPath }}