Skip to content

Commit ab6f138

Browse files
committed
ci: run workflows on Depot runners with tiered sizing
1 parent 3c191c5 commit ab6f138

3 files changed

Lines changed: 26 additions & 8 deletions

File tree

.github/actionlint.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# actionlint configuration for this repository.
2+
#
3+
# We use Depot-managed GitHub Actions runners (depot-*) instead of GitHub-hosted
4+
# runners. actionlint does not know custom runner labels by default, so we must
5+
# explicitly allow them here.
6+
#
7+
# Docs: https://github.com/rhysd/actionlint/blob/main/docs/config.md
8+
self-hosted-runner:
9+
labels:
10+
- depot-ubuntu-24.04
11+
- depot-ubuntu-24.04-8

.github/workflows/ci.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414
jobs:
1515
changes:
1616
name: Detect changed paths
17-
runs-on: ubuntu-latest
17+
runs-on: depot-ubuntu-24.04
1818
permissions:
1919
contents: read
2020
pull-requests: read
@@ -54,6 +54,8 @@ jobs:
5454
- '.golangci.yaml'
5555
workflows:
5656
- '.github/workflows/**'
57+
- '.github/actionlint.yaml'
58+
- '.github/actionlint.yml'
5759
publish:
5860
- '**/*.go'
5961
- 'go.mod'
@@ -65,7 +67,8 @@ jobs:
6567
lint:
6668
needs: changes
6769
if: github.event_name == 'merge_group' || needs.changes.outputs.go == 'true'
68-
runs-on: ubuntu-latest
70+
runs-on: depot-ubuntu-24.04-8
71+
timeout-minutes: 20
6972
steps:
7073
- name: Checkout
7174
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
@@ -102,7 +105,8 @@ jobs:
102105
test:
103106
needs: changes
104107
if: github.event_name == 'merge_group' || needs.changes.outputs.go == 'true'
105-
runs-on: ubuntu-latest
108+
runs-on: depot-ubuntu-24.04-8
109+
timeout-minutes: 30
106110
steps:
107111
- name: Checkout
108112
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
@@ -143,7 +147,8 @@ jobs:
143147
name: E2E Smoke (Kind)
144148
needs: [changes, test]
145149
if: needs.changes.outputs.go == 'true'
146-
runs-on: ubuntu-latest
150+
runs-on: depot-ubuntu-24.04-8
151+
timeout-minutes: 45
147152
steps:
148153
- name: Checkout
149154
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
@@ -203,7 +208,7 @@ jobs:
203208
name: Lint GitHub Actions
204209
needs: changes
205210
if: github.event_name == 'merge_group' || needs.changes.outputs.workflows == 'true'
206-
runs-on: ubuntu-latest
211+
runs-on: depot-ubuntu-24.04
207212
permissions:
208213
contents: read
209214
steps:
@@ -231,7 +236,7 @@ jobs:
231236
codex-comments:
232237
name: Codex Comments
233238
if: github.event_name == 'pull_request'
234-
runs-on: ubuntu-latest
239+
runs-on: depot-ubuntu-24.04
235240
permissions:
236241
contents: read
237242
pull-requests: read
@@ -259,7 +264,8 @@ jobs:
259264
(needs.lint.result == 'success' || needs.lint.result == 'skipped') &&
260265
(needs.lint-actions.result == 'success' || needs.lint-actions.result == 'skipped') &&
261266
(needs.e2e-kind.result == 'success' || needs.e2e-kind.result == 'skipped')
262-
runs-on: ubuntu-latest
267+
runs-on: depot-ubuntu-24.04-8
268+
timeout-minutes: 30
263269
permissions:
264270
contents: read
265271
packages: write

.github/workflows/release.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ permissions:
1010

1111
jobs:
1212
goreleaser:
13-
runs-on: ubuntu-latest
13+
runs-on: depot-ubuntu-24.04-8
14+
timeout-minutes: 60
1415
steps:
1516
- name: Checkout
1617
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

0 commit comments

Comments
 (0)