Skip to content

Commit

Permalink
changed actions to test and build tests in the same job
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed Aug 22, 2023
1 parent a34d6cb commit 0ffa28c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 148 deletions.
76 changes: 13 additions & 63 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ on: [push, pull_request, workflow_dispatch]

jobs:

Tests:
name: Test-${{ matrix.testMode }}-${{ matrix.unityVersion }}
Builds:
name: Build-${{ matrix.targetPlatform }}-${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testMode:
#- playmode
- editmode
targetPlatform:
- StandaloneWindows
#- WebGL
unityVersion:
- 2019.3.15f1
- 2019.4.40f1
Expand All @@ -26,19 +26,15 @@ jobs:
- 2022.2.21f1
- 2022.3.7f1
- 2023.1.0f1

steps:


#Checkout
- uses: actions/checkout@v3.5.3
with:
fetch-depth: 0
lfs: true

#CreateSymbolicLink:
#- name: CreateSymbolicLink
#run: Assets/CreateSymbolicLink.sh


#Cache
- uses: actions/cache@v1.2.1
with:
Expand All @@ -47,8 +43,8 @@ jobs:
restore-keys:
Library-${{ matrix.projectPath }}-${{ matrix.unityVersion }}
Library-

#Test Runner
#Test
- uses: game-ci/unity-test-runner@v2.2.0
id: tests
env:
Expand All @@ -61,59 +57,13 @@ jobs:
checkName: Test results ${{ matrix.testMode }}-${{ matrix.unityVersion }}
unityVersion: ${{ matrix.unityVersion }}
customParameters: '-nographics'
#Artifact

#Test Artifact
- uses: actions/upload-artifact@v3.1.2
if: always()
with:
name: Test results for ${{ matrix.testMode }}-${{ matrix.unityVersion }}
path: ${{ steps.tests.outputs.artifactsPath }}

#BUILD
Builds:
name: Build-${{ matrix.targetPlatform }}-${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
targetPlatform:
- StandaloneWindows
#- WebGL
unityVersion:
- 2019.3.15f1
- 2019.4.40f1
- 2020.1.17f1
- 2020.2.7f1
- 2020.3.48f1
- 2021.1.28f1
- 2021.2.19f1
- 2021.3.29f1
- 2022.1.24f1
- 2022.2.21f1
- 2022.3.7f1
- 2023.1.0f1

steps:

#Checkout
- uses: actions/checkout@v3.5.3
with:
fetch-depth: 0
lfs: true


#CreateSymbolicLink:
#- name: CreateSymbolicLink
#run: Assets/CreateSymbolicLink.sh

#Cache
- uses: actions/cache@v1.2.1
with:
path: Library
key: Library-${{ matrix.projectPath }}-${{ matrix.unityVersion }}
restore-keys:
Library-${{ matrix.projectPath }}-${{ matrix.unityVersion }}
Library-

#Build
- uses: game-ci/unity-builder@v3.0.0
Expand All @@ -124,7 +74,7 @@ jobs:
unityVersion: ${{ matrix.unityVersion }}
customParameters: '-nographics'

#Artifact
#Build Artifact
- uses: actions/upload-artifact@v3.1.2
with:
name: Build-${{ matrix.targetPlatform }}-${{ matrix.unityVersion }}
Expand Down
85 changes: 0 additions & 85 deletions .github/workflows/main_combined.yml

This file was deleted.

0 comments on commit 0ffa28c

Please sign in to comment.