fix for newer version of mirage. #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
#on: | |
# pull_request: {} | |
# push: { branches: [main] } | |
on: | |
push: | |
paths-ignore: | |
- 'doc/**' | |
- '*.md' | |
jobs: | |
CI: | |
name: Test | |
runs-on: ubuntu-latest | |
# available list of containers here: | |
# https://hub.docker.com/r/unityci/editor/tags?page=1&ordering=last_updated&name=ubuntu-2020.1.17f1-base | |
container: unityci/editor:ubuntu-2021.1.12f1-base-0.15.0 | |
env: | |
DOTNET_ROOT: '/opt/unity/Editor/Data/NetCore/Sdk-2.2.107' | |
steps: | |
- name: Activate unity | |
# exit code is 1 for manual activation | |
continue-on-error: true | |
env: | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
run: | | |
echo "$UNITY_LICENSE" | tr -d '\r' > UnityLicenseFile.ulf | |
unity-editor -nographics -logFile /dev/stdout -manualLicenseFile UnityLicenseFile.ulf -quit | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Cache Library | |
id: cache-library | |
uses: actions/cache@v2 | |
with: | |
path: Library | |
key: Library-2020.1.17 | |
- name: Run editor Tests | |
run: unity-editor -nographics -logFile /dev/stdout -runTests -testPlatform editmode -testResults Tests/editmode-results.xml -enableCodeCoverage -coverageResultsPath Tests -debugCodeOptimization | |
timeout-minutes: 20 | |
- name: Run play Tests | |
run: unity-editor -nographics -logFile /dev/stdout -runTests -testPlatform playmode -testResults Tests/playmode-results.xml -enableCodeCoverage -coverageResultsPath Tests -debugCodeOptimization | |
timeout-minutes: 20 | |
- name: Archive test results | |
uses: actions/[email protected] | |
if: always() | |
with: | |
name: Test results | |
path: Tests | |
- name: Publish test results | |
uses: MirageNet/[email protected] | |
if: always() | |
with: | |
path: "Tests/*.xml" | |
access-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Release | |
uses: cycjimmy/semantic-release-action@v2 | |
id: semantic | |
with: | |
extra_plugins: | | |
@semantic-release/changelog | |
@semantic-release/git | |
branch: master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Generate Solution | |
run: unity-editor -nographics -logFile /dev/stdout -customBuildName ObjectPooler -projectPath . -executeMethod UnityEditor.SyncVS.SyncSolution -quit |