Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Update README.md

Update README.md #73

Workflow file for this run

name: Unity Tests
on:
push:
branches:
- master
pull_request:
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE_2020 }}
jobs:
testAllModes:
name: Test on version ${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- .
unityVersion:
- 2020.2.0f1
steps:
- uses: actions/checkout@v2
with:
lfs: true
- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
shell: bash
- name: Cache Library
uses: actions/[email protected]
with:
path: ${{ matrix.projectPath }}/Library
key: Library-${{ matrix.projectPath }}-${{ matrix.unityVersion }}-${{ steps.get-date.outputs.date }}
restore-keys: |
Library-${{ matrix.projectPath }}-${{ matrix.unityVersion }}-
Library-${{ matrix.projectPath }}-
Library-
- run: ./scripts/coverageAssemblyFilters
id: assemblyFilters
- uses: game-ci/[email protected]
id: tests
with:
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
artifactsPath: TestResults
customParameters: -nographics -burst-disable-compilation -enableCodeCoverage -coverageOptions generateAdditionalMetrics;enableCyclomaticComplexity;assemblyFilters:${{ steps.assemblyFilters.outputs.result }}
- name: Upload Test Results Artifacts
uses: actions/upload-artifact@v1
with:
name: Test results
path: ${{ steps.tests.outputs.artifactsPath }}
- name: Upload Code Coverage Artifacts
uses: actions/upload-artifact@v1
with:
name: Code Coverage
path: ./CodeCoverage
- name: Upload PlayMode Test Coverage Report
uses: codecov/codecov-action@v1
with:
flags: unittests
file: ./CodeCoverage/workspace-opencov/PlayMode/TestCoverageResults_0000.xml
- name: Upload EditMode Test Coverage Report
uses: codecov/codecov-action@v1
with:
flags: unittests
file: ./CodeCoverage/workspace-opencov/EditMode/TestCoverageResults_0000.xml