Skip to content

Commit

Permalink
CI with github actions
Browse files Browse the repository at this point in the history
At the same time correct the supported java version to 8+.
  • Loading branch information
hupfdule committed Jan 27, 2024
1 parent 847a935 commit 86bfca8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on: [push, pull_request]
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11, 17, 21, 22-ea]
dist: ['zulu']
name: Build and Verify with JDK ${{ matrix.dist }} ${{ matrix.java }}
steps:
- uses: ts-graphviz/setup-graphviz@v1
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.dist }} ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.dist }}
java-version: ${{ matrix.java }}
- name: Verify with Maven
run: mvn -DperformRelease=true --batch-mode --no-transfer-progress clean verify failsafe:integration-test
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<maven.compiler.release>1.6</maven.compiler.release>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.release>8</maven.compiler.release>
</properties>

<dependencies>
Expand Down

0 comments on commit 86bfca8

Please # to comment.