Skip to content

Merge pull request #65 from phip1611/dependabot/github_actions/cachix… #184

Merge pull request #65 from phip1611/dependabot/github_actions/cachix…

Merge pull request #65 from phip1611/dependabot/github_actions/cachix… #184

Workflow file for this run

name: Java CI with Maven
on:
- push
- pull_request
- merge_group
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: adopt
- name: Checkstyle
run: mvn -B checkstyle:check --file pom.xml
- uses: actions/upload-artifact@v4
with:
name: checkstyle-result.xml
path: target/checkstyle-result.xml
build_jdk11:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: adopt
- name: Build with Maven
run: mvn -B package --file pom.xml
build_latest_lts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: adopt
- name: Build with Maven
run: mvn -B package --file pom.xml
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: adopt
- name: Javadoc
run: mvn -B javadoc:javadoc --file pom.xml
- uses: actions/upload-artifact@v4
with:
name: javadoc
path: target/site/apidocs