Skip to content

GitHub Action to build Maven projects with different Java JDK versions.

License

Notifications You must be signed in to change notification settings

offa/maven-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maven-action

ci GitHub release License

GitHub Action for Maven based projects.

It checks out the repository, runs maven and optional analysis.

Available parameters are documented in the action.yml.

Example

Builds JDK 11 and 17 and executes a PMD analysis.

# […]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        java: [ 11, 17 ]
    name: jdk-${{ matrix.java }}
    steps:
      - name: Build
        uses: offa/maven-action@main
        with:
          java-version: ${{ matrix.java }}
          pmd: true