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