Skip to content

Commit c79846f

Browse files
authored
Update Action to Node 20 (#128)
* Update GitHub Actions workflows to latest versions * Update dependencies & run on Node 20
1 parent b4dc19b commit c79846f

14 files changed

+484
-599
lines changed

.github/workflows/check-lowercase.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
jobs:
1717
build:
1818
name: Build image using Buildah
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-22.04
2020
strategy:
2121
fail-fast: false
2222
matrix:
@@ -26,7 +26,7 @@ jobs:
2626

2727
# Checkout buildah action github repository
2828
- name: Checkout Buildah action
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030
with:
3131
path: "buildah-build"
3232

.github/workflows/ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ on:
66
jobs:
77
lint:
88
name: Run ESLint
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-22.04
1010

1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
- run: npm ci
1414
- run: npm run lint
1515

1616
check-dist:
1717
name: Check Distribution
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-22.04
1919
env:
2020
BUNDLE_FILE: "dist/index.js"
2121
BUNDLE_COMMAND: "npm run bundle"
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424

2525
- name: Install
2626
run: npm ci
@@ -33,11 +33,11 @@ jobs:
3333

3434
check-inputs-outputs:
3535
name: Check Input and Output enums
36-
runs-on: ubuntu-20.04
36+
runs-on: ubuntu-22.04
3737
env:
3838
IO_FILE: ./src/generated/inputs-outputs.ts
3939
steps:
40-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v4
4141

4242
- name: Install dependencies
4343
run: npm ci

.github/workflows/containerfile_build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
jobs:
1616
build:
1717
name: Build image using Buildah
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-22.04
1919
strategy:
2020
fail-fast: false
2121
matrix:
@@ -25,7 +25,7 @@ jobs:
2525

2626
# Checkout buildah action github repository
2727
- name: Checkout Buildah action
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929
with:
3030
path: "buildah-build"
3131

.github/workflows/docker_metadata_action.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
build-containerfile:
1414
name: Build image with Containerfile
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-22.04
1616
strategy:
1717
fail-fast: false
1818
matrix:
@@ -25,7 +25,7 @@ jobs:
2525

2626
# Checkout buildah action github repository
2727
- name: Checkout Buildah action
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929

3030
- name: Docker Metadata
3131
id: docker-metadata
@@ -88,7 +88,7 @@ jobs:
8888
8989
build-scratch:
9090
name: Build image without Containerfile
91-
runs-on: ubuntu-20.04
91+
runs-on: ubuntu-22.04
9292
strategy:
9393
fail-fast: false
9494
matrix:
@@ -103,7 +103,7 @@ jobs:
103103

104104
# Checkout buildah action github repository
105105
- name: Checkout Buildah action
106-
uses: actions/checkout@v3
106+
uses: actions/checkout@v4
107107

108108
- name: Docker Metadata
109109
id: docker-metadata
@@ -128,7 +128,7 @@ jobs:
128128
129129
# Checkout spring-petclinic github repository
130130
- name: Checkout spring-petclinic project
131-
uses: actions/checkout@v3
131+
uses: actions/checkout@v4
132132
with:
133133
repository: "spring-projects/spring-petclinic"
134134
path: ${{ env.PROJECT_DIR }}

.github/workflows/link_check.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ on:
1212
jobs:
1313
markdown-link-check:
1414
name: Check links in markdown
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-22.04
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- uses: gaurav-nelson/github-action-markdown-link-check@v1
1919
with:
2020
use-verbose-mode: true

.github/workflows/multiarch.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Build multi-architecture image using Containerfile
1717
env:
1818
IMAGE_NAME: hello-world-multiarch
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-22.04
2020
strategy:
2121
fail-fast: false
2222
matrix:
@@ -26,7 +26,7 @@ jobs:
2626

2727
# Checkout buildah action github repository
2828
- name: Checkout Buildah action
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030
with:
3131
path: "buildah-build"
3232

@@ -84,7 +84,7 @@ jobs:
8484
name: Build multi-platform image using Containerfile
8585
env:
8686
IMAGE_NAME: hello-world-multiplatform
87-
runs-on: ubuntu-20.04
87+
runs-on: ubuntu-22.04
8888
strategy:
8989
fail-fast: false
9090
matrix:
@@ -94,7 +94,7 @@ jobs:
9494

9595
# Checkout buildah action github repository
9696
- name: Checkout Buildah action
97-
uses: actions/checkout@v3
97+
uses: actions/checkout@v4
9898
with:
9999
path: "buildah-build"
100100

@@ -151,7 +151,7 @@ jobs:
151151
name: Build multi-architecture image from scratch
152152
env:
153153
IMAGE_NAME: spring-petclinic-multiarch
154-
runs-on: ubuntu-20.04
154+
runs-on: ubuntu-22.04
155155
strategy:
156156
fail-fast: false
157157
matrix:
@@ -161,7 +161,7 @@ jobs:
161161

162162
# Checkout buildah action github repository
163163
- name: Checkout Buildah action
164-
uses: actions/checkout@v3
164+
uses: actions/checkout@v4
165165
with:
166166
path: "buildah-build"
167167

@@ -177,7 +177,7 @@ jobs:
177177
178178
# Checkout spring-petclinic github repository
179179
- name: Checkout spring-petclinic project
180-
uses: actions/checkout@v3
180+
uses: actions/checkout@v4
181181
with:
182182
repository: "spring-projects/spring-petclinic"
183183
path: ${{ env.PROJECT_DIR }}

.github/workflows/scratch_build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
jobs:
1818
build:
1919
name: Build image using Buildah
20-
runs-on: ubuntu-20.04
20+
runs-on: ubuntu-22.04
2121
strategy:
2222
fail-fast: false
2323
matrix:
@@ -27,7 +27,7 @@ jobs:
2727

2828
# Checkout buildah action github repository
2929
- name: Checkout Buildah action
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131
with:
3232
path: "buildah-build"
3333

@@ -38,7 +38,7 @@ jobs:
3838
3939
# Checkout spring-petclinic github repository
4040
- name: Checkout spring-petclinic project
41-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
4242
with:
4343
repository: "spring-projects/spring-petclinic"
4444
path: ${{ env.PROJECT_DIR }}

.github/workflows/security_scan.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ on:
99

1010
jobs:
1111
crda-scan:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313
name: Scan project vulnerability with CRDA
1414
steps:
1515

16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717

1818
- name: Setup Node
1919
uses: actions/setup-node@v3
2020
with:
21-
node-version: '16'
21+
node-version: '20'
2222
cache: 'npm'
2323

2424
- name: Install CRDA

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
runs-on: ubuntu-latest
127127
128128
steps:
129-
- uses: actions/checkout@v3
129+
- uses: actions/checkout@v4
130130
131131
- name: Buildah Action
132132
uses: redhat-actions/buildah-build@v2
@@ -166,7 +166,7 @@ jobs:
166166
runs-on: ubuntu-latest
167167
168168
steps:
169-
- uses: actions/checkout@v3
169+
- uses: actions/checkout@v4
170170
171171
- run: mvn package
172172

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ outputs:
9090
image-with-tag:
9191
description: 'Name of the image tagged with the first tag present'
9292
runs:
93-
using: 'node16'
93+
using: 'node20'
9494
main: 'dist/index.js'

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)