@@ -3,17 +3,21 @@ name: Tests
33on :
44 push :
55 branches : [ main ]
6- paths :
6+ paths :
77 - ' dist/*.js'
88 - ' action.yml'
99 - ' .github/workflows/tests.yml'
1010 pull_request :
1111 branches : [ main ]
1212
13+ permissions :
14+ contents : read
15+ pull-requests : read
16+
1317jobs :
1418 test-project :
1519 name : Test Project Build
16- runs-on : macos-13
20+ runs-on : macos-26
1721 strategy :
1822 matrix :
1923 platform :
4044 steps :
4145 - uses : maxim-lobanov/setup-xcode@v1
4246 with :
43- xcode-version : ^14.3
47+ xcode-version : ^26.0
4448 - name : Select destination
4549 id : destination
4650 env :
@@ -49,10 +53,10 @@ jobs:
4953 DESTINATION=''
5054 case "${PLATFORM}" in
5155 'macOS') DESTINATION='platform=macOS';;
52- 'iOS') DESTINATION='platform=iOS Simulator,OS=latest,name=iPhone 14 Pro';;
53- 'iPadOS') DESTINATION='platform=iOS Simulator,OS=latest,name=iPad Pro ( 11-inch) (4th generation )';;
56+ 'iOS') DESTINATION='platform=iOS Simulator,OS=latest,name=iPhone 17 Pro';;
57+ 'iPadOS') DESTINATION='platform=iOS Simulator,OS=latest,name=iPad 11-inch (M4 )';;
5458 'tvOS') DESTINATION='platform=tvOS Simulator,OS=latest,name=Apple TV 4K (3rd generation)';;
55- 'watchOS') DESTINATION='platform=watchOS Simulator,OS=latest,name=Apple Watch Series 8 (45mm )';;
59+ 'watchOS') DESTINATION='platform=watchOS Simulator,OS=latest,name=Apple Watch Ultra 3 (49mm )';;
5660 *) echo "::error title=Unknown platform!::Unknown platform: ${PLATFORM}" && exit 1;;
5761 esac
5862 echo "xcode=${DESTINATION}" >> "${GITHUB_OUTPUT}"
8387
8488 test-workspace :
8589 name : Test Workspace Build
86- runs-on : macos-13
90+ runs-on : macos-26
8791 strategy :
8892 matrix :
8993 platform :
@@ -110,7 +114,7 @@ jobs:
110114 steps :
111115 - uses : maxim-lobanov/setup-xcode@v1
112116 with :
113- xcode-version : ^14.3
117+ xcode-version : ^26.0
114118 - name : Select destination
115119 id : destination
116120 env :
@@ -119,10 +123,10 @@ jobs:
119123 DESTINATION=''
120124 case "${PLATFORM}" in
121125 'macOS') DESTINATION='platform=macOS';;
122- 'iOS') DESTINATION='platform=iOS Simulator,OS=latest,name=iPhone 14 Pro';;
123- 'iPadOS') DESTINATION='platform=iOS Simulator,OS=latest,name=iPad Pro ( 11-inch) (4th generation )';;
126+ 'iOS') DESTINATION='platform=iOS Simulator,OS=latest,name=iPhone 17 Pro';;
127+ 'iPadOS') DESTINATION='platform=iOS Simulator,OS=latest,name=iPad 11-inch (M4 )';;
124128 'tvOS') DESTINATION='platform=tvOS Simulator,OS=latest,name=Apple TV 4K (3rd generation)';;
125- 'watchOS') DESTINATION='platform=watchOS Simulator,OS=latest,name=Apple Watch Series 8 (45mm )';;
129+ 'watchOS') DESTINATION='platform=watchOS Simulator,OS=latest,name=Apple Watch Ultra 3 (49mm )';;
126130 *) echo "::error title=Unknown platform!::Unknown platform: ${PLATFORM}" && exit 1;;
127131 esac
128132 echo "xcode=${DESTINATION}" >> "${GITHUB_OUTPUT}"
@@ -153,7 +157,7 @@ jobs:
153157
154158 test-package :
155159 name : Test SPM Package Build
156- runs-on : macos-13
160+ runs-on : macos-26
157161 strategy :
158162 matrix :
159163 platform :
@@ -167,7 +171,7 @@ jobs:
167171 steps :
168172 - uses : maxim-lobanov/setup-xcode@v1
169173 with :
170- xcode-version : ^14.3
174+ xcode-version : ^26.0
171175 - name : Select destination
172176 id : destination
173177 env :
@@ -176,10 +180,10 @@ jobs:
176180 DESTINATION=''
177181 case "${PLATFORM}" in
178182 'macOS') DESTINATION='platform=macOS';;
179- 'iOS') DESTINATION='platform=iOS Simulator,OS=latest,name=iPhone 14 Pro';;
180- 'iPadOS') DESTINATION='platform=iOS Simulator,OS=latest,name=iPad Pro ( 11-inch) (4th generation )';;
183+ 'iOS') DESTINATION='platform=iOS Simulator,OS=latest,name=iPhone 17 Pro';;
184+ 'iPadOS') DESTINATION='platform=iOS Simulator,OS=latest,name=iPad 11-inch (M4 )';;
181185 'tvOS') DESTINATION='platform=tvOS Simulator,OS=latest,name=Apple TV 4K (3rd generation)';;
182- 'watchOS') DESTINATION='platform=watchOS Simulator,OS=latest,name=Apple Watch Series 8 (45mm )';;
186+ 'watchOS') DESTINATION='platform=watchOS Simulator,OS=latest,name=Apple Watch Ultra 3 (49mm )';;
183187 *) echo "::error title=Unknown platform!::Unknown platform: ${PLATFORM}" && exit 1;;
184188 esac
185189 echo "xcode=${DESTINATION}" >> "${GITHUB_OUTPUT}"
@@ -235,11 +239,11 @@ jobs:
235239 - if : ${{ github.event_name == 'pull_request' && env.RUNNER_DEBUG != 1 }}
236240 run : echo 'RUNNER_DEBUG=1' >> "${GITHUB_ENV}"
237241 - if : ${{ github.event_name == 'pull_request' }}
238- run : test "${RUNNER_DEBUG}" == "1"
242+ run : test "${RUNNER_DEBUG}" = "1"
239243 - if : ${{ github.event_name == 'push' }}
240244 env :
241245 DEBUG_ENABLED : ${{ secrets.ACTIONS_STEP_DEBUG }}
242- run : test "${DEBUG_ENABLED}" == 'true'
246+ run : test "${DEBUG_ENABLED}" = 'true'
243247 - uses : actions/checkout@v5
244248 - name : Generate action code
245249 if : ${{ github.event_name == 'pull_request' }}
@@ -324,7 +328,7 @@ jobs:
324328 LOCAL_UNPROCESSED_COMMAND : ${{ steps.xcodebuild-local.outputs.unprocessed-command }}
325329 LOCAL_EXECUTED_COMMAND : ${{ steps.xcodebuild-local.outputs.executed-command }}
326330 run : |
327- if [ "${EVENT_NAME}" == 'push' ]; then
331+ if [ "${EVENT_NAME}" = 'push' ]; then
328332 echo "unprocessed-command=${BRANCH_UNPROCESSED_COMMAND}" >> "${GITHUB_OUTPUT}"
329333 echo "executed-command=${BRANCH_EXECUTED_COMMAND}" >> "${GITHUB_OUTPUT}"
330334 else
@@ -406,11 +410,11 @@ jobs:
406410 - if : ${{ github.event_name == 'pull_request' && env.RUNNER_DEBUG != 1 }}
407411 run : echo 'RUNNER_DEBUG=1' >> "${GITHUB_ENV}"
408412 - if : ${{ github.event_name == 'pull_request' }}
409- run : test "${RUNNER_DEBUG}" == "1"
413+ run : test "${RUNNER_DEBUG}" = "1"
410414 - if : ${{ github.event_name == 'push' }}
411415 env :
412416 DEBUG_ENABLED : ${{ secrets.ACTIONS_STEP_DEBUG }}
413- run : test "${DEBUG_ENABLED}" == 'true'
417+ run : test "${DEBUG_ENABLED}" = 'true'
414418 - uses : actions/checkout@v5
415419 - name : Generate action code
416420 if : ${{ github.event_name == 'pull_request' }}
@@ -580,11 +584,11 @@ jobs:
580584 - if : ${{ github.event_name == 'pull_request' && env.RUNNER_DEBUG != 1 }}
581585 run : echo 'RUNNER_DEBUG=1' >> "${GITHUB_ENV}"
582586 - if : ${{ github.event_name == 'pull_request' }}
583- run : test "${RUNNER_DEBUG}" == "1"
587+ run : test "${RUNNER_DEBUG}" = "1"
584588 - if : ${{ github.event_name == 'push' }}
585589 env :
586590 DEBUG_ENABLED : ${{ secrets.ACTIONS_STEP_DEBUG }}
587- run : test "${DEBUG_ENABLED}" == 'true'
591+ run : test "${DEBUG_ENABLED}" = 'true'
588592 - uses : actions/checkout@v5
589593 - name : Generate action code
590594 if : ${{ github.event_name == 'pull_request' }}
@@ -671,7 +675,7 @@ jobs:
671675 LOCAL_UNPROCESSED_COMMAND : ${{ steps.xcodebuild-local.outputs.unprocessed-command }}
672676 LOCAL_EXECUTED_COMMAND : ${{ steps.xcodebuild-local.outputs.executed-command }}
673677 run : |
674- if [ "${EVENT_NAME}" == 'push' ]; then
678+ if [ "${EVENT_NAME}" = 'push' ]; then
675679 echo "unprocessed-command=${BRANCH_UNPROCESSED_COMMAND}" >> "${GITHUB_OUTPUT}"
676680 echo "executed-command=${BRANCH_EXECUTED_COMMAND}" >> "${GITHUB_OUTPUT}"
677681 else
@@ -735,11 +739,11 @@ jobs:
735739 - if : ${{ github.event_name == 'pull_request' && env.RUNNER_DEBUG != 1 }}
736740 run : echo 'RUNNER_DEBUG=1' >> "${GITHUB_ENV}"
737741 - if : ${{ github.event_name == 'pull_request' }}
738- run : test "${RUNNER_DEBUG}" == "1"
742+ run : test "${RUNNER_DEBUG}" = "1"
739743 - if : ${{ github.event_name == 'push' }}
740744 env :
741745 DEBUG_ENABLED : ${{ secrets.ACTIONS_STEP_DEBUG }}
742- run : test "${DEBUG_ENABLED}" == 'true'
746+ run : test "${DEBUG_ENABLED}" = 'true'
743747 - uses : actions/checkout@v5
744748 - name : Generate action code
745749 if : ${{ github.event_name == 'pull_request' }}
@@ -766,7 +770,7 @@ jobs:
766770 LOCAL_UNPROCESSED_COMMAND : ${{ steps.xcodebuild-local.outputs.unprocessed-command }}
767771 LOCAL_EXECUTED_COMMAND : ${{ steps.xcodebuild-local.outputs.executed-command }}
768772 run : |
769- if [ "${EVENT_NAME}" == 'push' ]; then
773+ if [ "${EVENT_NAME}" = 'push' ]; then
770774 echo "unprocessed-command=${BRANCH_UNPROCESSED_COMMAND}" >> "${GITHUB_OUTPUT}"
771775 echo "executed-command=${BRANCH_EXECUTED_COMMAND}" >> "${GITHUB_OUTPUT}"
772776 else
0 commit comments