Skip to content

yaml formatting

yaml formatting #53

Workflow file for this run

name: Test package
on: [push, pull_request]
jobs:
testAllModes:
name: Test in ${{ matrix.testMode }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- test-package
unityVersion: '2020.3.0f1' # some version must be included for package testing

Check failure on line 14 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Test package

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 14, Col: 23): Unexpected value '2020.3.0f1'
testMode:
- playmode
- editmode
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: set a correct package path
run: |
pwd
folderName=$(echo "${PWD##*/}")
rsync -r "$GITHUB_WORKSPACE" "${{ matrix.projectPath }}"
ls -F "${{ matrix.projectPath }}/$folderName"
- uses: game-ci/unity-test-runner@v4
id: tests
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
packageMode: true
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
testMode: ${{ matrix.testMode }}
artifactsPath: ${{ matrix.testMode }}-artifacts
checkName: ${{ matrix.testMode }} Test Results
coverageOptions: 'generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+my.assembly.*'
- uses: actions/upload-artifact@v3
if: always()
with:
name: Test results for ${{ matrix.testMode }}
path: ${{ steps.tests.outputs.artifactsPath }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: Coverage results for ${{ matrix.testMode }}
path: ${{ steps.tests.outputs.coveragePath }}