build: fix test workflow
parent
bba7df9616
commit
1b5588f418
|
|
@ -1,94 +1,94 @@
|
||||||
# # Secrets
|
# Secrets
|
||||||
# # UNITY_LICENSE:
|
# UNITY_LICENSE:
|
||||||
# name: test
|
name: test
|
||||||
|
|
||||||
# on:
|
on:
|
||||||
# push:
|
push:
|
||||||
# branches:
|
branches:
|
||||||
# - develop
|
- develop
|
||||||
# tags:
|
tags:
|
||||||
# - "!*"
|
- "!*"
|
||||||
# pull_request:
|
pull_request:
|
||||||
# types:
|
types:
|
||||||
# - opened
|
- opened
|
||||||
# - synchronize
|
- synchronize
|
||||||
|
|
||||||
# jobs:
|
jobs:
|
||||||
# unity-test:
|
unity-test:
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# strategy:
|
strategy:
|
||||||
# fail-fast: false
|
fail-fast: false
|
||||||
# matrix:
|
matrix:
|
||||||
# unityVersion: [
|
unityVersion: [
|
||||||
# "2018.3.14f1",
|
"2018.3.14f1",
|
||||||
# "2018.4.30f1",
|
"2018.4.30f1",
|
||||||
# "2019.1.14f1",
|
"2019.1.14f1",
|
||||||
# "2019.2.21f1",
|
"2019.2.21f1",
|
||||||
# "2019.3.15f1",
|
"2019.3.15f1",
|
||||||
# "2019.4.16f1",
|
"2019.4.16f1",
|
||||||
# "2020.1.17f1",
|
"2020.1.17f1",
|
||||||
# "2020.2.1f1",
|
"2020.2.1f1",
|
||||||
# ]
|
]
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# # Checkout sandbox project
|
# Checkout sandbox project
|
||||||
# - uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
# with:
|
with:
|
||||||
# ref: sandbox
|
ref: sandbox
|
||||||
# submodules: true
|
submodules: true
|
||||||
# fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
# # Update package submodule
|
# Update package submodule
|
||||||
# - name: "Update package submodule"
|
- name: "Update package submodule"
|
||||||
# working-directory: Packages/dev
|
working-directory: Packages/dev
|
||||||
# run: git checkout ${{ github.sha }}
|
run: git checkout ${{ github.sha }}
|
||||||
|
|
||||||
# - uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
# with:
|
with:
|
||||||
# path: Library
|
path: Library
|
||||||
# key: Library-${{ matrix.unityVersion }}-${{ github.sha }}
|
key: Library-${{ matrix.unityVersion }}-${{ github.sha }}
|
||||||
# restore-keys: |
|
restore-keys: |
|
||||||
# Library-${{ matrix.unityVersion }}-
|
Library-${{ matrix.unityVersion }}-
|
||||||
# Library-
|
Library-
|
||||||
|
|
||||||
# # Install codecoverage package
|
# Install codecoverage package
|
||||||
# - name: "Install codecoverage package"
|
# - name: "Install codecoverage package"
|
||||||
# if: startsWith(matrix.unityVersion, '2019.4.')
|
# if: startsWith(matrix.unityVersion, '2019.4.')
|
||||||
# run: |
|
# run: |
|
||||||
# npx openupm-cli add -f com.unity.testtools.codecoverage@0.4.0-preview
|
# npx openupm-cli add -f com.unity.testtools.codecoverage@0.4.0-preview
|
||||||
|
|
||||||
# # Run tests
|
# Run tests
|
||||||
# - name: "Run tests"
|
- name: "Run tests"
|
||||||
# uses: game-ci/unity-test-runner@main
|
uses: game-ci/unity-test-runner@main
|
||||||
# with:
|
with:
|
||||||
# unityVersion: ${{ matrix.unityVersion }}
|
unityVersion: ${{ matrix.unityVersion }}
|
||||||
# customParameters: -nographics -enableCodeCoverage -coverageOptions assemblyFilters:+Coffee.UIParticle.*Tests
|
customParameters: -nographics
|
||||||
# env:
|
env:
|
||||||
# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
|
||||||
# - uses: actions/upload-artifact@v2
|
# - uses: actions/upload-artifact@v2
|
||||||
# if: always()
|
# if: always()
|
||||||
# with:
|
# with:
|
||||||
# name: TestResults-${{ matrix.unityVersion }}
|
# name: TestResults-${{ matrix.unityVersion }}
|
||||||
# path: |
|
# path: |
|
||||||
# artifacts/*.xml
|
# artifacts/*.xml
|
||||||
# CodeCoverage/**/TestCoverageResults_*.xml
|
# CodeCoverage/**/TestCoverageResults_*.xml
|
||||||
|
|
||||||
# publish:
|
# publish:
|
||||||
# needs: unity-test
|
# needs: unity-test
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
# if: always()
|
# if: always()
|
||||||
# steps:
|
# steps:
|
||||||
|
|
||||||
# - uses: actions/download-artifact@v2
|
# - uses: actions/download-artifact@v2
|
||||||
# with:
|
# with:
|
||||||
# path: artifacts
|
# path: artifacts
|
||||||
|
|
||||||
# - uses: testspace-com/setup-testspace@v1
|
# - uses: testspace-com/setup-testspace@v1
|
||||||
# with:
|
# with:
|
||||||
# domain: ${{github.repository_owner}}
|
# domain: ${{github.repository_owner}}
|
||||||
|
|
||||||
# - name: Push test results
|
# - name: Push test results
|
||||||
# if: always()
|
# if: always()
|
||||||
# run: |
|
# run: |
|
||||||
# testspace `find . -name '*.xml' | tr '\n' ' '`
|
# testspace `find . -name '*.xml' | tr '\n' ' '`
|
||||||
Loading…
Reference in New Issue