V2 update deps #125
Workflow file for this run
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: Maven PR Build | |
# We require all commits go through PR on GitHub | |
on: | |
pull_request: | |
branches: | |
- v2 | |
- v3 | |
jobs: | |
build: | |
name: Maven PR Builder (JDK ${{ matrix.java }}) | |
runs-on: ubuntu-latest | |
env: | |
MAVEN_CACHE_KEY: ${{ secrets.MAVEN_CACHE_KEY }} | |
strategy: | |
matrix: | |
java: [ 17 ] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2 | |
- name: Install JDK ${{ matrix.java }} and Maven | |
uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1 | |
with: | |
java-version: ${{ matrix.java }} | |
# If running locally in act, install Maven | |
- name: Set up Maven if needed | |
if: ${{ env.ACT }} | |
uses: stCarolas/setup-maven@1d56b37995622db66cce1214d81014b09807fb5a # v4 | |
with: | |
maven-version: 3.6.3 | |
- name: Set up Maven cache | |
uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a # v2 | |
if: ${{ env.MAVEN_CACHE_KEY }} | |
with: | |
path: ~/.m2 | |
key: maven-cache-${{ secrets.MAVEN_CACHE_KEY }}-${{ hashFiles('**/pom.xml') }} | |
restore-keys: maven-cache-${{ secrets.MAVEN_CACHE_KEY }}- | |
- name: Build with Maven | |
uses: samuelmeuli/action-maven-publish@201a45a3f311b2ee888f252ba9f4194257545709 # v1.4.0 | |
with: | |
maven_goals_phases: "clean verify" | |
maven_profiles: default | |
maven_args: "-V -ntp -Dorg.slf4j.simpleLogger.log.net.sourceforge.pmd=error" |