Merge pull request #141 from paritytrading/dependabot/maven/org.junit… #307
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java | |
on: | |
- push | |
- pull_request | |
permissions: | |
contents: read | |
jobs: | |
java: | |
name: ${{ matrix.java-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: | |
- 8 | |
- 11 | |
- 17 | |
- 21 | |
steps: | |
- name: Check out GitHub repository | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java-version }} | |
cache: 'maven' | |
- name: Run tests | |
run: mvn test | |
- name: Run Checkstyle | |
run: mvn checkstyle:check | |
- name: Generate Javadoc | |
run: mvn compile javadoc:javadoc |