1212 python : ["3.9", "3.13"]
1313 steps :
1414 - uses : actions/checkout@v4
15- with :
16- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
1715 - name : Set up Python
1816 uses : actions/setup-python@v5
1917 with :
2927 runs-on : ubuntu-latest
3028 steps :
3129 - 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
3334 with :
34- ref : " ${{ github.event.pull_request.merge_commit_sha }} "
35+ node-version : ' 22 '
3536
3637 - name : Set up Node.js 22
3738 uses : actions/setup-node@v4
5152 python : ["3.9", "3.13"]
5253 steps :
5354 - uses : actions/checkout@v4
54- with :
55- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
5655 - name : Set up Python
5756 uses : actions/setup-python@v5
5857 with :
6867 runs-on : ubuntu-latest
6968 steps :
7069 - 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
7274 with :
73- ref : " ${{ github.event.pull_request.merge_commit_sha }} "
75+ node-version : ' 22 '
7476
7577 - name : Set up Node.js 22
7678 uses : actions/setup-node@v4
9092 python : ["3.9"]
9193 steps :
9294 - uses : actions/checkout@v4
93- with :
94- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
9595 - name : Set up Python
9696 uses : actions/setup-python@v5
9797 with :
@@ -107,9 +107,12 @@ jobs:
107107 runs-on : ubuntu-latest
108108 steps :
109109 - 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
111114 with :
112- ref : " ${{ github.event.pull_request.merge_commit_sha }} "
115+ node-version : ' 22 '
113116
114117 - name : Set up Node.js 22
115118 uses : actions/setup-node@v4
@@ -129,8 +132,6 @@ jobs:
129132 python : ["3.9", "3.13"]
130133 steps :
131134 - uses : actions/checkout@v4
132- with :
133- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
134135 - name : Set up Python
135136 uses : actions/setup-python@v5
136137 with :
@@ -146,7 +147,12 @@ jobs:
146147 runs-on : ubuntu-latest
147148 steps :
148149 - 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'
150156
151157 - name : Set up Node.js 22
152158 uses : actions/setup-node@v4
@@ -166,8 +172,6 @@ jobs:
166172 python : ["3.9", "3.13"]
167173 steps :
168174 - uses : actions/checkout@v4
169- with :
170- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
171175 - name : Set up Python
172176 uses : actions/setup-python@v5
173177 with :
@@ -183,9 +187,12 @@ jobs:
183187 runs-on : ubuntu-latest
184188 steps :
185189 - 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
187194 with :
188- ref : " ${{ github.event.pull_request.merge_commit_sha }} "
195+ node-version : ' 22 '
189196
190197 - name : Set up Node.js 22
191198 uses : actions/setup-node@v4
@@ -199,6 +206,8 @@ jobs:
199206 run : npm run test:integration
200207
201208 build :
209+ # Only build if the PR branch is local
210+ if : github.event.pull_request.head.repo.full_name == github.repository
202211 runs-on : ubuntu-latest
203212 strategy :
204213 matrix :
@@ -208,7 +217,6 @@ jobs:
208217 uses : actions/checkout@v4
209218 with :
210219 fetch-depth : 0
211- ref : " ${{ github.event.pull_request.merge_commit_sha }}"
212220 - name : Set up Python
213221 uses : actions/setup-python@v5
214222 with :
@@ -353,3 +361,30 @@ jobs:
353361 - name : Skip build notification
354362 if : steps.check-changes.outputs.should_build == 'false'
355363 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