Skip to content

Commit

Permalink
Update Action to Node 20 (#128)
Browse files Browse the repository at this point in the history
* Update GitHub Actions workflows to latest versions

* Update dependencies & run on Node 20
  • Loading branch information
der-eismann authored Feb 1, 2024
1 parent b4dc19b commit c79846f
Show file tree
Hide file tree
Showing 14 changed files with 484 additions and 599 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-lowercase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
jobs:
build:
name: Build image using Buildah
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -26,7 +26,7 @@ jobs:

# Checkout buildah action github repository
- name: Checkout Buildah action
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: "buildah-build"

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ on:
jobs:
lint:
name: Run ESLint
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: npm ci
- run: npm run lint

check-dist:
name: Check Distribution
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
BUNDLE_FILE: "dist/index.js"
BUNDLE_COMMAND: "npm run bundle"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install
run: npm ci
Expand All @@ -33,11 +33,11 @@ jobs:

check-inputs-outputs:
name: Check Input and Output enums
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
IO_FILE: ./src/generated/inputs-outputs.ts
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
run: npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/containerfile_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
jobs:
build:
name: Build image using Buildah
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -25,7 +25,7 @@ jobs:

# Checkout buildah action github repository
- name: Checkout Buildah action
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: "buildah-build"

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker_metadata_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
build-containerfile:
name: Build image with Containerfile
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -25,7 +25,7 @@ jobs:

# Checkout buildah action github repository
- name: Checkout Buildah action
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Docker Metadata
id: docker-metadata
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
build-scratch:
name: Build image without Containerfile
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -103,7 +103,7 @@ jobs:

# Checkout buildah action github repository
- name: Checkout Buildah action
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Docker Metadata
id: docker-metadata
Expand All @@ -128,7 +128,7 @@ jobs:
# Checkout spring-petclinic github repository
- name: Checkout spring-petclinic project
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: "spring-projects/spring-petclinic"
path: ${{ env.PROJECT_DIR }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/link_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ on:
jobs:
markdown-link-check:
name: Check links in markdown
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-verbose-mode: true
14 changes: 7 additions & 7 deletions .github/workflows/multiarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Build multi-architecture image using Containerfile
env:
IMAGE_NAME: hello-world-multiarch
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -26,7 +26,7 @@ jobs:

# Checkout buildah action github repository
- name: Checkout Buildah action
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: "buildah-build"

Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
name: Build multi-platform image using Containerfile
env:
IMAGE_NAME: hello-world-multiplatform
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -94,7 +94,7 @@ jobs:

# Checkout buildah action github repository
- name: Checkout Buildah action
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: "buildah-build"

Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
name: Build multi-architecture image from scratch
env:
IMAGE_NAME: spring-petclinic-multiarch
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -161,7 +161,7 @@ jobs:

# Checkout buildah action github repository
- name: Checkout Buildah action
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: "buildah-build"

Expand All @@ -177,7 +177,7 @@ jobs:
# Checkout spring-petclinic github repository
- name: Checkout spring-petclinic project
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: "spring-projects/spring-petclinic"
path: ${{ env.PROJECT_DIR }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scratch_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:
jobs:
build:
name: Build image using Buildah
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -27,7 +27,7 @@ jobs:

# Checkout buildah action github repository
- name: Checkout Buildah action
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: "buildah-build"

Expand All @@ -38,7 +38,7 @@ jobs:
# Checkout spring-petclinic github repository
- name: Checkout spring-petclinic project
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: "spring-projects/spring-petclinic"
path: ${{ env.PROJECT_DIR }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/security_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ on:

jobs:
crda-scan:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Scan project vulnerability with CRDA
steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20'
cache: 'npm'

- name: Install CRDA
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Buildah Action
uses: redhat-actions/buildah-build@v2
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: mvn package
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,5 @@ outputs:
image-with-tag:
description: 'Name of the image tagged with the first tag present'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit c79846f

Please sign in to comment.