Skip to content

Commit

Permalink
updated github workflows to use jdk 21
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCookieLab committed Sep 23, 2024
1 parent e87f8a4 commit 7bf1ab3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ name: Check license header
on:
pull_request:
branches:
- develop
- master

jobs:
Expand All @@ -15,9 +14,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'temurin'
java-version: '21'
- name: Build with Maven
run: xvfb-run mvn -B license:check
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ name: Test
on:
pull_request:
branches:
- develop
- master
push:
branches:
- develop
- master

jobs:
Expand All @@ -20,9 +18,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'temurin'
java-version: '21'
- name: Build with Maven
run: xvfb-run mvn -B test
8 changes: 4 additions & 4 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ name: Validate source code
on:
pull_request:
branches:
- develop
- master

jobs:
Expand All @@ -15,9 +14,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'temurin'
java-version: '21'
- name: Build with Maven
run: xvfb-run mvn -B formatter:validate
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<source>21</source>
<target>21</target>
<release>21</release>
<source>21</source>
<target>21</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
</configuration>
Expand Down

0 comments on commit 7bf1ab3

Please sign in to comment.