You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+15-12Lines changed: 15 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ jobs:
75
75
# defining steps for the job as explained above
76
76
steps:
77
77
- name: Checkout repository
78
-
uses: actions/checkout@v3# cache maven packages step - caching maven packages to speed up the build process. Link to the documentation - https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
78
+
uses: actions/checkout@v4.2.2# cache maven packages step - caching maven packages to speed up the build process. Link to the documentation - https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
79
79
- name: Cache Maven packages
80
80
uses: actions/cache@v3 # defining cache key and restore keys for the cache step. Link to the documentation - https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows#matching-a-cache-key
81
81
with:
@@ -156,7 +156,7 @@ jobs:
156
156
runner-index: ${{ fromjson(needs.runner-indexes.outputs.json) }} # using the runner-indexes job output to define the matrix strategy
157
157
steps:
158
158
- name: Checkout repository # checkout the repository
159
-
uses: actions/checkout@v3.0.2
159
+
uses: actions/checkout@v4.2.2
160
160
# caching the maven packages to speed up the build process.
161
161
# Link to the documentation - https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
162
162
- name: Cache Maven packages
@@ -167,14 +167,17 @@ jobs:
167
167
restore-keys: ${{ runner.os }}-junit- # key for restoring the cache if no exact match is found
168
168
# In this step, we are downloading the latest artifact from the build job and storing it in the container
169
169
- run: |
170
-
# Download the latest tests results artifact number from the GitHub API using jq to parse the JSON response
171
-
curl \
170
+
# Download the latest test results artifact number using GitHub API
# split-tests action - splits the tests into x number of groups
194
197
# based on the total number of github-hosted runners and junit previous test results by time and line count.
195
198
# Link to the action - https://github.com/marketplace/actions/split-tests
196
-
- uses: chaosaffe/split-tests@v1-alpha.1
199
+
- uses: scruplelesswizard/split-tests@v1-alpha.1
197
200
id: split-tests
198
201
name: Split tests
199
202
with:
@@ -224,7 +227,7 @@ jobs:
224
227
runs-on: ubuntu-latest
225
228
steps:
226
229
- name: Checkout repository
227
-
uses: actions/checkout@v3
230
+
uses: actions/checkout@v4.2.2
228
231
229
232
- name: List Artifacts
230
233
id: list-artifacts
@@ -273,7 +276,7 @@ jobs:
273
276
# 6. push the docker image to the GitHub Container Registry
274
277
steps:
275
278
- name: Checkout repository
276
-
uses: actions/checkout@v3
279
+
uses: actions/checkout@v4.2.2
277
280
- uses: actions/download-artifact@v4.1.8
278
281
with:
279
282
name: jar-artifact
@@ -290,7 +293,7 @@ jobs:
290
293
291
294
- name: Build and push Docker image
292
295
id: build_image
293
-
uses: docker/build-push-action@v4# using the docker build and push action from the github marketplace - github.com/marketplace/actions/build-and-push-docker-images
296
+
uses: docker/build-push-action@v6.9.0# using the docker build and push action from the github marketplace - github.com/marketplace/actions/build-and-push-docker-images
294
297
with:
295
298
context: . # using the current directory as the context
296
299
push: true # push the docker image to the registry
0 commit comments