Skip to content

Commit 2b6258a

Browse files
authored
Merge pull request #227 from joelsmith/kedamain
Perform test image build PR check
2 parents 71f3f7f + fb967ea commit 2b6258a

File tree

5 files changed

+56
-25
lines changed

5 files changed

+56
-25
lines changed

.github/workflows/main-build.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@ jobs:
1616
container: ghcr.io/kedacore/keda-tools:1.22.2
1717
steps:
1818
- name: Check out code
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 1
2222
lfs: true
2323

2424
- name: Setup Go
25-
uses: actions/setup-go@v4
25+
uses: actions/setup-go@v5
2626
with:
2727
go-version: '1.22'
2828

2929
- name: Go modules cache
30-
uses: actions/cache@v3
30+
uses: actions/cache@v4
3131
with:
3232
path: /go/pkg
3333
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
3434
restore-keys: |
3535
${{ runner.os }}-go-
3636
3737
- name: Login to GitHub Container Registry
38-
uses: docker/login-action@v2
38+
uses: docker/login-action@v3
3939
with:
4040
# Username used to log in to a Docker registry. If not set then no login will occur
4141
username: ${{ github.repository_owner }}
@@ -65,18 +65,18 @@ jobs:
6565
runs-on: ubuntu-latest
6666
steps:
6767
- name: Check out code
68-
uses: actions/checkout@v3
68+
uses: actions/checkout@v4
6969
with:
7070
fetch-depth: 1
7171
lfs: true
7272

7373
- name: Setup Go
74-
uses: actions/setup-go@v4
74+
uses: actions/setup-go@v5
7575
with:
7676
go-version: '1.22'
7777

7878
- name: Login to GitHub Container Registry
79-
uses: docker/login-action@v2
79+
uses: docker/login-action@v3
8080
with:
8181
# Username used to log in to a Docker registry. If not set then no login will occur
8282
username: ${{ github.repository_owner }}
@@ -130,26 +130,26 @@ jobs:
130130
runs-on: ubuntu-latest
131131
steps:
132132
- name: Check out code
133-
uses: actions/checkout@v3
133+
uses: actions/checkout@v4
134134
with:
135135
fetch-depth: 1
136136
lfs: true
137137

138138
- name: Setup Go
139-
uses: actions/setup-go@v4
139+
uses: actions/setup-go@v5
140140
with:
141141
go-version: '1.22'
142142

143143
- name: Go modules cache
144-
uses: actions/cache@v3
144+
uses: actions/cache@v4
145145
with:
146146
path: /go/pkg
147147
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
148148
restore-keys: |
149149
${{ runner.os }}-go-
150150
151151
- name: Login to GitHub Container Registry
152-
uses: docker/login-action@v2
152+
uses: docker/login-action@v3
153153
with:
154154
# Username used to log in to a Docker registry. If not set then no login will occur
155155
username: ${{ github.repository_owner }}

.github/workflows/nightly-tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Setup Go
12-
uses: actions/setup-go@v4
12+
uses: actions/setup-go@v5
1313
with:
1414
go-version: '1.22'
1515

1616
- name: Check out code
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 1
2020

2121
- name: Login to GitHub Container Registry
22-
uses: docker/login-action@v2
22+
uses: docker/login-action@v3
2323
with:
2424
# Username used to log in to a Docker registry. If not set then no login will occur
2525
username: ${{ github.repository_owner }}

.github/workflows/pr-tests.yml

+36-5
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Setup Go
10-
uses: actions/setup-go@v4
10+
uses: actions/setup-go@v5
1111
with:
1212
go-version: '1.22'
1313

1414
- name: Check out code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 1
1818

@@ -28,11 +28,42 @@ jobs:
2828
name: Static Checks
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v3
32-
- uses: actions/setup-python@v4
33-
- uses: actions/setup-go@v4
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-python@v5
33+
- uses: actions/setup-go@v5
3434
with:
3535
go-version: '1.22'
3636
- name: Get golangci
3737
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.56.2
3838
- uses: pre-commit/[email protected]
39+
40+
test-build:
41+
name: Test Image Build
42+
runs-on: ubuntu-latest
43+
permissions:
44+
contents: read
45+
packages: write
46+
47+
container: ghcr.io/kedacore/keda-tools:1.22.2
48+
steps:
49+
- name: Check out code
50+
uses: actions/checkout@v4
51+
with:
52+
fetch-depth: 1
53+
lfs: true
54+
55+
- name: Setup Go
56+
uses: actions/setup-go@v5
57+
with:
58+
go-version: '1.22'
59+
60+
- name: Go modules cache
61+
uses: actions/cache@v4
62+
with:
63+
path: /go/pkg
64+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
65+
restore-keys: |
66+
${{ runner.os }}-go-
67+
68+
- name: Test build
69+
run: make docker-build

.github/workflows/release-build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
container: ghcr.io/kedacore/keda-tools:1.22.2
1616
steps:
1717
- name: Check out code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 1
2121

2222
- name: Login to GitHub Container Registry
23-
uses: docker/login-action@v2
23+
uses: docker/login-action@v3
2424
with:
2525
# Username used to log in to a Docker registry. If not set then no login will occur
2626
username: ${{ github.repository_owner }}
@@ -40,7 +40,7 @@ jobs:
4040

4141
# https://github.com/sigstore/cosign-installer
4242
- name: Install Cosign
43-
uses: sigstore/cosign-installer@v2
43+
uses: sigstore/cosign-installer@v3
4444
- name: Check Cosign install!
4545
run: cosign version
4646

.github/workflows/version-diff.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717

@@ -56,7 +56,7 @@ jobs:
5656
old_files: ${{ steps.setup-id.outputs.old_files }}
5757
steps:
5858
- name: Checkout
59-
uses: actions/checkout@v3
59+
uses: actions/checkout@v4
6060
with:
6161
fetch-depth: 0
6262

@@ -121,7 +121,7 @@ jobs:
121121

122122
steps:
123123
- name: Checkout
124-
uses: actions/checkout@v3
124+
uses: actions/checkout@v4
125125

126126
- name: Checkout Pull Request
127127
env:

0 commit comments

Comments
 (0)