build: fix test workflow

main
mob-sakai 2021-06-29 22:27:35 +09:00
parent bba7df9616
commit 1b5588f418
1 changed files with 82 additions and 82 deletions

View File

@ -1,70 +1,70 @@
# # 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()