Skip to content

Commit e54a685

Browse files
committed
[GHA] Update jdks and fix checkout
1 parent b6efeff commit e54a685

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ jobs:
2424
strategy:
2525
matrix:
2626
os: [ubuntu-latest]
27-
java: [11, 17, 20]
27+
java: [11, 17, 21]
2828
distribution: ['zulu']
2929
fail-fast: false
3030
max-parallel: 5
3131
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
3232

3333
steps:
34-
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
34+
- uses: actions/checkout@v4
3535
- name: Set up JDK
3636
uses: actions/setup-java@v3
3737
with:

.github/workflows/coveralls.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
if: github.repository_owner == 'mybatis'
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
26+
- uses: actions/checkout@v4
2727
- name: Set up JDK
2828
uses: actions/setup-java@v3
2929
with:
30-
java-version: 11
30+
java-version: 21
3131
distribution: zulu
3232
- name: Report Coverage to Coveralls for Pull Requests
3333
if: github.event_name == 'pull_request'

.github/workflows/sonar.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
if: github.repository_owner == 'mybatis'
2727
runs-on: ubuntu-latest
2828
steps:
29-
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
29+
- uses: actions/checkout@v4
3030
with:
3131
# Disabling shallow clone is recommended for improving relevancy of reporting
3232
fetch-depth: 0
3333
- name: Set up JDK
3434
uses: actions/setup-java@v3
3535
with:
36-
java-version: 17
36+
java-version: 21
3737
distribution: zulu
3838
- name: Analyze with SonarCloud
3939
run: ./mvnw verify jacoco:report sonar:sonar -B -Dsonar.projectKey=mybatis_mybatis-dynamic-sql -Dsonar.organization=mybatis -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dlicense.skip=true

.github/workflows/sonatype.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
if: github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')
2727
runs-on: ubuntu-latest
2828
steps:
29-
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
29+
- uses: actions/checkout@v4
3030
- name: Set up JDK
3131
uses: actions/setup-java@v3
3232
with:
33-
java-version: 17
33+
java-version: 21
3434
distribution: zulu
3535
- name: Deploy to Sonatype
3636
run: ./mvnw deploy -DskipTests -B --settings ./.mvn/settings.xml -Dlicense.skip=true

0 commit comments

Comments
 (0)