1515 UNITY_PASSWORD : { required: true }
1616
1717# #############################################################################
18- # 2. Job – runs only after a maintainer applies the `ci-ok` label
18+ # 2. Jobs – runs only after a maintainer applies the `ci-ok` label
1919# #############################################################################
2020jobs :
2121 test :
@@ -40,41 +40,45 @@ jobs:
4040
4141 steps :
4242 # --------------------------------------------------------------------- #
43- # 2-a. (PR only) abort if the contributor also changed workflow files
43+ # 2-a. Skip Unity 2019 on Windows early
44+ # --------------------------------------------------------------------- #
45+ - name : Skip Unity 2019 on Windows
46+ if : ${{ startsWith(inputs.unityVersion, '2019.') && matrix.os == 'windows' }}
47+ run : |
48+ echo "::notice::Unity 2019 on Windows doesn't support Docker test running - skipping tests"
49+ exit 0
50+ shell : bash
51+
52+ # --------------------------------------------------------------------- #
53+ # 2-b. (PR only) abort if the contributor also changed workflow files
4454 # --------------------------------------------------------------------- #
4555 - name : Abort if workflow files modified
46- if : ${{ github.event_name == 'pull_request_target' }}
56+ if : ${{ github.event_name == 'pull_request_target' && !(startsWith(inputs.unityVersion, '2019.') && matrix.os == 'windows') }}
4757 run : |
4858 git fetch --depth=1 origin "${{ github.base_ref }}"
4959 if git diff --name-only HEAD origin/${{ github.base_ref }} | grep -q '^\.github/workflows/'; then
5060 echo "::error::This PR edits workflow files – refusing to run with secrets"; exit 1;
5161 fi
5262
5363 # --------------------------------------------------------------------- #
54- # 2-b . Checkout the contributor’ s commit safely
64+ # 2-c . Checkout the contributor' s commit safely
5565 # --------------------------------------------------------------------- #
5666 - uses : actions/checkout@v4
67+ if : ${{ !(startsWith(inputs.unityVersion, '2019.') && matrix.os == 'windows') }}
5768 with :
5869 lfs : false
5970
6071 # --------------------------------------------------------------------- #
6172 # 2-c. Cache & run the Unity test-runner
6273 # --------------------------------------------------------------------- #
6374 - uses : actions/cache@v4
75+ if : ${{ !(startsWith(inputs.unityVersion, '2019.') && matrix.os == 'windows') }}
6476 with :
6577 path : |
6678 ${{ inputs.projectPath }}/Library
6779 ~/.cache/unity3d
6880 key : Library-${{ inputs.unityVersion }}-${{ matrix.os }}
6981
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-
7882 # --------------------------------------------------------------------- #
7983 - name : Generate custom image name
8084 if : ${{ !(startsWith(inputs.unityVersion, '2019.') && matrix.os == 'windows') }}
0 commit comments