Skip to content

Commit 9770c7b

Browse files
committed
Add conditional checks to skip Unity 2019 tests on Windows in CI workflow
1 parent d4435e2 commit 9770c7b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/test_unity_plugin.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,24 @@ jobs:
6767
~/.cache/unity3d
6868
key: Library-${{ inputs.unityVersion }}-${{ matrix.os }}
6969

70+
# --------------------------------------------------------------------- #
71+
- name: Skip Unity 2019 on Windows
72+
if: ${{ startsWith(inputs.unityVersion, '2019.') && matrix.os == 'windows' }}
73+
run: |
74+
echo "::notice::Unity 2019 on Windows doesn't support Docker test running - skipping tests"
75+
exit 0
76+
shell: bash
77+
7078
# --------------------------------------------------------------------- #
7179
- name: Generate custom image name
80+
if: ${{ !(startsWith(inputs.unityVersion, '2019.') && matrix.os == 'windows') }}
7281
id: custom_image
7382
run: |
7483
echo "image=unityci/editor:${{ matrix.os }}-${{ inputs.unityVersion }}-base-3" >> $GITHUB_OUTPUT
7584
shell: bash
7685

7786
- uses: game-ci/unity-test-runner@v4
87+
if: ${{ !(startsWith(inputs.unityVersion, '2019.') && matrix.os == 'windows') }}
7888
id: tests
7989
env:
8090
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
@@ -92,7 +102,7 @@ jobs:
92102

93103
# --------------------------------------------------------------------- #
94104
- uses: actions/upload-artifact@v4
95-
if: always()
105+
if: ${{ always() && !(startsWith(inputs.unityVersion, '2019.') && matrix.os == 'windows') }}
96106
with:
97107
name: Test results for ${{ inputs.unityVersion }} ${{ inputs.testMode }} on ${{ matrix.os }}
98108
path: ${{ steps.tests.outputs.artifactsPath }}

0 commit comments

Comments
 (0)