Skip to content

Commit e3dd723

Browse files
committed
.github/workflows: add versioned ubuntu, add timeouts
1 parent 2cc5e0e commit e3dd723

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ env:
66
QUAY_PATH: quay.io/brancz/kube-rbac-proxy
77
kind-version: v0.27.0
88
go-version: 1.25
9+
runner-version: ubuntu-24.04
910

1011
defaults:
1112
run:
@@ -17,8 +18,9 @@ concurrency:
1718

1819
jobs:
1920
check-license:
20-
runs-on: ubuntu-latest
2121
name: Check license
22+
runs-on: ${{ runner-version }}
23+
timeout-minutes: 3
2224
steps:
2325
- name: Checkout repository
2426
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -27,8 +29,9 @@ jobs:
2729
run: make check-license
2830

2931
generate:
30-
runs-on: ubuntu-latest
3132
name: Generate
33+
runs-on: ${{ runner-version }}
34+
timeout-minutes: 5
3235
steps:
3336
- name: Checkout repository
3437
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -42,8 +45,9 @@ jobs:
4245
run: make generate && git diff --exit-code
4346

4447
lint:
45-
runs-on: ubuntu-latest
4648
name: Lint
49+
runs-on: ${{ runner-version }}
50+
timeout-minutes: 5
4751
steps:
4852
- name: Checkout repository
4953
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -54,8 +58,9 @@ jobs:
5458
version: latest
5559

5660
build:
57-
runs-on: ubuntu-latest
5861
name: Build
62+
runs-on: ${{ runner-version }}
63+
timeout-minutes: 5
5964
steps:
6065
- name: Checkout repository
6166
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -69,8 +74,9 @@ jobs:
6974
run: make build
7075

7176
unit-tests:
72-
runs-on: ubuntu-latest
7377
name: Unit tests
78+
runs-on: ${{ runner-version }}
79+
timeout-minutes: 5
7480
steps:
7581
- name: Checkout repository
7682
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -84,8 +90,9 @@ jobs:
8490
run: make test-unit
8591

8692
e2e-tests:
87-
runs-on: ubuntu-latest
8893
name: E2E tests
94+
runs-on: ${{ runner-version }}
95+
timeout-minutes: 15
8996
steps:
9097
- name: Checkout repository
9198
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -117,8 +124,9 @@ jobs:
117124
make test-e2e
118125
119126
publish:
120-
runs-on: ubuntu-latest
121127
name: Publish container image to Quay
128+
runs-on: ${{ runner-version }}
129+
timeout-minutes: 15
122130
if: ${{ github.event.repository.fork == false && github.event_name == 'push' }}
123131
needs:
124132
- check-license

0 commit comments

Comments
 (0)