Skip to content

Commit fd11385

Browse files
authored
ci: use ubuntu-26.04 runners (3.x) (#19015)
Port of #18714 to 3.x. All 3.x GitHub Actions jobs move to the `ubuntu-26.04` runner image. Resolves [PYLD-4400](https://linear.app/figma/issue/PYLD-4400/update-gh-runners-to-ubuntu-26) ## Changes - **Runner label** - Jobs that used `ubuntu-24.04` now use `ubuntu-26.04`. - The `analyze` and `sync-mirror` jobs move from `ubuntu-latest` to a pinned `ubuntu-26.04`. All jobs now run on one OS version. - **Scope** - This PR changes only the workflows that exist on 3.x. The other workflows in #18714 exist only on `main`. ## References / Links - [#18714](#18714): the same change on `main` - [actions/runner-images#14748](actions/runner-images#14748): rollout plan for `ubuntu-latest` to Ubuntu 26.04 🤖 Written with AI
1 parent 5aceaec commit fd11385

7 files changed

Lines changed: 26 additions & 26 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ permissions:
2323

2424
jobs:
2525
changes:
26-
runs-on: ubuntu-24.04
26+
runs-on: ubuntu-26.04
2727
permissions:
2828
contents: read
2929
pull-requests: read
@@ -74,7 +74,7 @@ jobs:
7474
echo "build_approvals: ${{ steps.filter.outputs.build_approvals }}"
7575
7676
lint:
77-
runs-on: ubuntu-24.04
77+
runs-on: ubuntu-26.04
7878
steps:
7979
- uses: actions/checkout@v5
8080
with:
@@ -94,7 +94,7 @@ jobs:
9494
build:
9595
needs: changes
9696
if: needs.changes.outputs.needs_build == 'true'
97-
runs-on: ubuntu-24.04
97+
runs-on: ubuntu-26.04
9898

9999
steps:
100100
- uses: actions/checkout@v5
@@ -116,7 +116,7 @@ jobs:
116116
permissions:
117117
actions: read
118118
contents: read
119-
runs-on: ubuntu-24.04
119+
runs-on: ubuntu-26.04
120120
needs: [changes, build]
121121
if: needs.changes.outputs.needs_tests == 'true'
122122
steps:
@@ -136,7 +136,7 @@ jobs:
136136
permissions:
137137
actions: read
138138
contents: read
139-
runs-on: ubuntu-24.04
139+
runs-on: ubuntu-26.04
140140
needs: [changes, build]
141141
if: needs.changes.outputs.needs_tests == 'true'
142142
steps:
@@ -155,7 +155,7 @@ jobs:
155155
# Generate the integration test matrix from TypeScript config
156156
int-matrix:
157157
name: Setup Int Matrix
158-
runs-on: ubuntu-24.04
158+
runs-on: ubuntu-26.04
159159
outputs:
160160
matrix: ${{ steps.generate.outputs.matrix }}
161161
steps:
@@ -179,7 +179,7 @@ jobs:
179179
permissions:
180180
actions: read
181181
contents: read
182-
runs-on: ubuntu-24.04
182+
runs-on: ubuntu-26.04
183183
needs: [changes, build, int-matrix]
184184
if: needs.changes.outputs.needs_tests == 'true'
185185
name: int-${{ matrix.database }}${{ matrix.total-shards > 1 && format(' ({0}/{1})', matrix.shard, matrix.total-shards) || '' }}
@@ -232,7 +232,7 @@ jobs:
232232
# Generate the E2E test matrix from TypeScript config
233233
e2e-matrix:
234234
name: Setup E2E Matrix
235-
runs-on: ubuntu-24.04
235+
runs-on: ubuntu-26.04
236236
outputs:
237237
matrix: ${{ steps.generate.outputs.matrix }}
238238
steps:
@@ -258,7 +258,7 @@ jobs:
258258
actions: read
259259
contents: read
260260
name: E2E Prep
261-
runs-on: ubuntu-24.04
261+
runs-on: ubuntu-26.04
262262
needs: [changes, build]
263263
if: needs.changes.outputs.needs_tests == 'true'
264264
steps:
@@ -288,7 +288,7 @@ jobs:
288288
permissions:
289289
actions: read
290290
contents: read
291-
runs-on: ubuntu-24.04
291+
runs-on: ubuntu-26.04
292292
needs: [e2e-matrix, e2e-prep]
293293
name: E2E - ${{ matrix.suite }}${{ matrix.total-shards > 1 && format(' ({0}/{1})', matrix.shard, matrix.total-shards) || '' }}${{ matrix.cacheComponents && ' [cacheComponents]' || '' }}
294294
timeout-minutes: 45
@@ -410,7 +410,7 @@ jobs:
410410
permissions:
411411
actions: read
412412
contents: read
413-
runs-on: ubuntu-24.04
413+
runs-on: ubuntu-26.04
414414
needs: [changes, build]
415415
if: needs.changes.outputs.needs_build == 'true'
416416
name: build-template-${{ matrix.template }}-${{ matrix.database }}
@@ -506,7 +506,7 @@ jobs:
506506
# Fails if create-payload-app's build-script allowlist drifts from the blank template's deps:
507507
# scaffolds blank, installs it standalone under pnpm v11, and asserts no ERR_PNPM_IGNORED_BUILDS.
508508
check-template-build-approvals:
509-
runs-on: ubuntu-24.04
509+
runs-on: ubuntu-26.04
510510
needs: [changes, build]
511511
if: needs.changes.outputs.build_approvals == 'true'
512512
steps:
@@ -522,7 +522,7 @@ jobs:
522522
permissions:
523523
actions: read
524524
contents: read
525-
runs-on: ubuntu-24.04
525+
runs-on: ubuntu-26.04
526526
needs: [changes, build]
527527
if: needs.changes.outputs.needs_tests == 'true'
528528
steps:
@@ -546,7 +546,7 @@ jobs:
546546
# concurrent CI runs and removing the need for shared credentials.
547547
tests-content-api:
548548
name: Content API Tests
549-
runs-on: ubuntu-24.04
549+
runs-on: ubuntu-26.04
550550
needs: [changes, build]
551551
# Skip fork PRs: this job uses credentials fork workflows must not reach.
552552
if: needs.changes.outputs.needs_tests == 'true' && github.event.pull_request.head.repo.fork == false
@@ -679,7 +679,7 @@ jobs:
679679
all-green:
680680
name: All Green
681681
if: always()
682-
runs-on: ubuntu-24.04
682+
runs-on: ubuntu-26.04
683683
needs:
684684
[
685685
lint,
@@ -698,7 +698,7 @@ jobs:
698698
run: exit 1
699699

700700
analyze:
701-
runs-on: ubuntu-latest
701+
runs-on: ubuntu-26.04
702702
needs: [changes, build]
703703
timeout-minutes: 5
704704
permissions:

‎.github/workflows/post-release-templates.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212

1313
jobs:
1414
wait_for_release:
15-
runs-on: ubuntu-24.04
15+
runs-on: ubuntu-26.04
1616
outputs:
1717
release_tag: ${{ steps.determine_tag.outputs.release_tag }}
1818
target_branch: ${{ steps.determine_tag.outputs.target_branch }}
@@ -64,7 +64,7 @@ jobs:
6464
6565
update_templates:
6666
needs: wait_for_release
67-
runs-on: ubuntu-24.04
67+
runs-on: ubuntu-26.04
6868
permissions:
6969
contents: read
7070
outputs:
@@ -129,7 +129,7 @@ jobs:
129129
open_pr:
130130
needs: [wait_for_release, update_templates]
131131
if: needs.update_templates.outputs.has_changes == 'true'
132-
runs-on: ubuntu-24.04
132+
runs-on: ubuntu-26.04
133133
environment: release
134134
permissions:
135135
contents: read

‎.github/workflows/post-release.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
permissions:
2222
issues: write
2323
pull-requests: write
24-
runs-on: ubuntu-24.04
24+
runs-on: ubuntu-26.04
2525
if: ${{ github.event_name != 'workflow_dispatch' }}
2626
steps:
2727
- uses: actions/checkout@v5
@@ -40,7 +40,7 @@ jobs:
4040
🚀 This is included in version {release_link}
4141
4242
dispatch-to-website:
43-
runs-on: ubuntu-24.04
43+
runs-on: ubuntu-26.04
4444
if: ${{ github.event_name != 'workflow_dispatch' }}
4545
steps:
4646
- name: Dispatch release event to website
@@ -51,7 +51,7 @@ jobs:
5151
event-type: payload-release-event
5252

5353
github-releases-to-discord:
54-
runs-on: ubuntu-24.04
54+
runs-on: ubuntu-26.04
5555
if: ${{ github.event_name != 'workflow_dispatch' }}
5656
steps:
5757
- name: Checkout

‎.github/workflows/publish-prerelease.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
name: publish-prerelease-${{ github.ref_name }}-${{ github.sha }}
2424
permissions:
2525
id-token: write
26-
runs-on: ubuntu-24.04
26+
runs-on: ubuntu-26.04
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@v5

‎.github/workflows/publish-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
if: >-
2424
github.repository == 'payloadcms/payload' &&
2525
!contains(github.event.head_commit.message, '[skip ci]')
26-
runs-on: ubuntu-24.04
26+
runs-on: ubuntu-26.04
2727
environment: release
2828
permissions:
2929
id-token: write

‎.github/workflows/release-bump.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
bump:
3333
name: release-bump
3434
if: github.repository == 'payloadcms/payload'
35-
runs-on: ubuntu-24.04
35+
runs-on: ubuntu-26.04
3636
# Scopes the App credentials to this environment, whose branch policy
3737
# limits them to workflows running on 3.x.
3838
environment: bump

‎.github/workflows/sync-mirror.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions: {}
1111
jobs:
1212
dispatch-sync:
1313
if: ${{ github.repository == 'payloadcms/payload' }}
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-26.04
1515
environment: mirror-dispatch
1616
steps:
1717
- name: Require mirror target

0 commit comments

Comments
 (0)