Skip to content

Commit

Permalink
[releng] Bump Github actions to v4
Browse files Browse the repository at this point in the history
v3 is based on Node 16; users should switch to v4 based on Node 20.[1]

[1] https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
  • Loading branch information
tomaswolf committed Feb 21, 2024
1 parent ee382b0 commit de46a15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
os: [ ubuntu-latest, windows-latest ]
java: [ '8' ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ matrix.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand All @@ -57,15 +57,15 @@ jobs:
os: [ ubuntu-latest, windows-latest ]
java: [ '8', '11', '17' ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ matrix.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand All @@ -79,7 +79,7 @@ jobs:
- name: Archive test results and logs
# if: success() || failure() to also get the test results on successful runs.
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.java }}-${{ matrix.os }}
path: sshd-*/target/surefire-*
6 changes: 3 additions & 3 deletions .github/workflows/master-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ jobs:
concurrency: mina-sshd-snapshot-deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '8'
Expand All @@ -53,7 +53,7 @@ jobs:
server-username: NEXUS_USERNAME
server-password: NEXUS_PASSWORD

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ubuntu-latest-maven-${{ hashFiles('**/pom.xml') }}
Expand Down

0 comments on commit de46a15

Please sign in to comment.