Skip to content

Bump oxsecurity/megalinter/flavors/java from 9.6.0 to 10.0.0 #230

Bump oxsecurity/megalinter/flavors/java from 9.6.0 to 10.0.0

Bump oxsecurity/megalinter/flavors/java from 9.6.0 to 10.0.0 #230

Workflow file for this run

# Secondary build that builds the project with JDK 11+. Note that the target in the pom.xml is still Java 8.
name: Maven build
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# Java 8 has its own file so we can do other stuff like Coveralls
java: ['11', '17', '21']
name: Java ${{ matrix.java }} build
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Java
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- name: Build with Maven
run: mvn -B --file pom.xml package