12
12
python : ["3.9", "3.13"]
13
13
steps :
14
14
- uses : actions/checkout@v4
15
- with :
16
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
17
15
- name : Set up Python
18
16
uses : actions/setup-python@v5
19
17
with :
29
27
runs-on : ubuntu-latest
30
28
steps :
31
29
- name : Check out code
32
- uses : actions/checkout@v3
30
+ uses : actions/checkout@v4
31
+
32
+ - name : Set up Node.js 22
33
+ uses : actions/setup-node@v4
33
34
with :
34
- ref : " ${{ github.event.pull_request.merge_commit_sha }} "
35
+ node-version : ' 22 '
35
36
36
37
- name : Set up Node.js 22
37
38
uses : actions/setup-node@v4
51
52
python : ["3.9", "3.13"]
52
53
steps :
53
54
- uses : actions/checkout@v4
54
- with :
55
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
56
55
- name : Set up Python
57
56
uses : actions/setup-python@v5
58
57
with :
68
67
runs-on : ubuntu-latest
69
68
steps :
70
69
- name : Check out code
71
- uses : actions/checkout@v3
70
+ uses : actions/checkout@v4
71
+
72
+ - name : Set up Node.js 22
73
+ uses : actions/setup-node@v4
72
74
with :
73
- ref : " ${{ github.event.pull_request.merge_commit_sha }} "
75
+ node-version : ' 22 '
74
76
75
77
- name : Set up Node.js 22
76
78
uses : actions/setup-node@v4
90
92
python : ["3.9"]
91
93
steps :
92
94
- uses : actions/checkout@v4
93
- with :
94
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
95
95
- name : Set up Python
96
96
uses : actions/setup-python@v5
97
97
with :
@@ -107,9 +107,12 @@ jobs:
107
107
runs-on : ubuntu-latest
108
108
steps :
109
109
- name : Check out code
110
- uses : actions/checkout@v3
110
+ uses : actions/checkout@v4
111
+
112
+ - name : Set up Node.js 22
113
+ uses : actions/setup-node@v4
111
114
with :
112
- ref : " ${{ github.event.pull_request.merge_commit_sha }} "
115
+ node-version : ' 22 '
113
116
114
117
- name : Set up Node.js 22
115
118
uses : actions/setup-node@v4
@@ -129,8 +132,6 @@ jobs:
129
132
python : ["3.9", "3.13"]
130
133
steps :
131
134
- uses : actions/checkout@v4
132
- with :
133
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
134
135
- name : Set up Python
135
136
uses : actions/setup-python@v5
136
137
with :
@@ -146,7 +147,12 @@ jobs:
146
147
runs-on : ubuntu-latest
147
148
steps :
148
149
- name : Check out code
149
- uses : actions/checkout@v3
150
+ uses : actions/checkout@v4
151
+
152
+ - name : Set up Node.js 22
153
+ uses : actions/setup-node@v4
154
+ with :
155
+ node-version : ' 22'
150
156
151
157
- name : Set up Node.js 22
152
158
uses : actions/setup-node@v4
@@ -166,8 +172,6 @@ jobs:
166
172
python : ["3.9", "3.13"]
167
173
steps :
168
174
- uses : actions/checkout@v4
169
- with :
170
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
171
175
- name : Set up Python
172
176
uses : actions/setup-python@v5
173
177
with :
@@ -183,9 +187,12 @@ jobs:
183
187
runs-on : ubuntu-latest
184
188
steps :
185
189
- name : Check out code
186
- uses : actions/checkout@v3
190
+ uses : actions/checkout@v4
191
+
192
+ - name : Set up Node.js 22
193
+ uses : actions/setup-node@v4
187
194
with :
188
- ref : " ${{ github.event.pull_request.merge_commit_sha }} "
195
+ node-version : ' 22 '
189
196
190
197
- name : Set up Node.js 22
191
198
uses : actions/setup-node@v4
@@ -199,6 +206,8 @@ jobs:
199
206
run : npm run test:integration
200
207
201
208
build :
209
+ # Only build if the PR branch is local
210
+ if : github.event.pull_request.head.repo.full_name == github.repository
202
211
runs-on : ubuntu-latest
203
212
strategy :
204
213
matrix :
@@ -208,7 +217,6 @@ jobs:
208
217
uses : actions/checkout@v4
209
218
with :
210
219
fetch-depth : 0
211
- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
212
220
- name : Set up Python
213
221
uses : actions/setup-python@v5
214
222
with :
@@ -353,3 +361,30 @@ jobs:
353
361
- name : Skip build notification
354
362
if : steps.check-changes.outputs.should_build == 'false'
355
363
run : echo "Skipping UI preview build - no relevant files changed"
364
+
365
+ build-and-push-container :
366
+ # Only build if the PR branch is local
367
+ if : github.event.pull_request.head.repo.full_name == github.repository
368
+ runs-on : ubuntu-latest
369
+ permissions :
370
+ packages : write
371
+ steps :
372
+ - name : Checkout
373
+ uses : actions/checkout@v4
374
+ - name : Buildah build
375
+ id : build-image
376
+ uses : redhat-actions/buildah-build@v2
377
+ with :
378
+ image : ${{ github.event.repository.name }}
379
+ tags : " pr-${{ github.event.number }}"
380
+ containerfiles : |
381
+ ./deploy/Containerfile
382
+ - name : Push To ghcr.io
383
+ id : push-to-ghcr
384
+ uses : redhat-actions/push-to-registry@v2
385
+ with :
386
+ image : ${{ steps.build-image.outputs.image }}
387
+ tags : ${{ steps.build-image.outputs.tags }}
388
+ username : ${{ github.actor }}
389
+ password : ${{ github.token }}
390
+ registry : ghcr.io/${{ github.repository_owner }}
0 commit comments