Skip to content

Commit ad872f9

Browse files
committed
ci: run workflows on Depot runners with tiered sizing
1 parent 8b4b17b commit ad872f9

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
@@ -56,6 +56,8 @@ jobs:
5656
- '.golangci.yaml'
5757
workflows:
5858
- '.github/workflows/**'
59+
- '.github/actionlint.yaml'
60+
- '.github/actionlint.yml'
5961
publish:
6062
- '**/*.go'
6163
- 'go.mod'
@@ -67,7 +69,8 @@ jobs:
6769
lint:
6870
needs: changes
6971
if: github.event_name == 'merge_group' || needs.changes.outputs.go == 'true'
70-
runs-on: ubuntu-latest
72+
runs-on: depot-ubuntu-24.04-8
73+
timeout-minutes: 20
7174
steps:
7275
- name: Checkout
7376
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
@@ -104,7 +107,8 @@ jobs:
104107
test:
105108
needs: changes
106109
if: github.event_name == 'merge_group' || needs.changes.outputs.go == 'true'
107-
runs-on: ubuntu-latest
110+
runs-on: depot-ubuntu-24.04-8
111+
timeout-minutes: 30
108112
steps:
109113
- name: Checkout
110114
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
@@ -145,7 +149,8 @@ jobs:
145149
name: E2E Smoke (Kind)
146150
needs: [changes, test]
147151
if: needs.changes.outputs.go == 'true'
148-
runs-on: ubuntu-latest
152+
runs-on: depot-ubuntu-24.04-8
153+
timeout-minutes: 45
149154
steps:
150155
- name: Checkout
151156
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
@@ -205,7 +210,7 @@ jobs:
205210
name: Lint GitHub Actions
206211
needs: changes
207212
if: github.event_name == 'merge_group' || needs.changes.outputs.workflows == 'true'
208-
runs-on: ubuntu-latest
213+
runs-on: depot-ubuntu-24.04
209214
permissions:
210215
contents: read
211216
steps:
@@ -233,7 +238,7 @@ jobs:
233238
codex-comments:
234239
name: Codex Comments
235240
if: github.event_name == 'pull_request'
236-
runs-on: ubuntu-latest
241+
runs-on: depot-ubuntu-24.04
237242
permissions:
238243
contents: read
239244
pull-requests: read
@@ -261,7 +266,8 @@ jobs:
261266
(needs.lint.result == 'success' || needs.lint.result == 'skipped') &&
262267
(needs.lint-actions.result == 'success' || needs.lint-actions.result == 'skipped') &&
263268
(needs.e2e-kind.result == 'success' || needs.e2e-kind.result == 'skipped')
264-
runs-on: ubuntu-latest
269+
runs-on: depot-ubuntu-24.04-8
270+
timeout-minutes: 30
265271
permissions:
266272
contents: read
267273
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)