Skip to content

Commit

Permalink
Update GitHub Actions and style location
Browse files Browse the repository at this point in the history
  • Loading branch information
ctubbsii committed Jul 23, 2024
1 parent b829304 commit 1f0980e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,28 @@

name: mvn verify

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
on: [push, pull_request, workflow_dispatch]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
java: [17]
os: [ubuntu-latest, windows-latest, macos-latest]
java: [17, 21, 22, 23-ea]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: zulu
- name: Cache local maven repository
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ matrix.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ matrix.os }}-m2
distribution: temurin
cache: 'maven'
- name: Download Maven Wrapper
run: mvn wrapper:wrapper "-Dmaven=3.9.8"
- name: Build with Maven
run: mvn -B -V -e "-Dstyle.color=always" verify -DskipFormat -DverifyFormat
run: ./mvnw -B -V -e "-Dstyle.color=always" verify "-Drevelc.skipFormat" "-Drevelc.verifyFormat"
env:
MAVEN_OPTS: -Djansi.force=true

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<url>https://github.com/revelc/${github.site.repositoryName}</url>
</scm>
<properties>
<formatter.configFile>contrib/eclipse-java-style.xml</formatter.configFile>
<formatter.configFile>src/build/eclipse-java-style.xml</formatter.configFile>
<invoker.streamLogs>true</invoker.streamLogs>
<maven.compiler.release>8</maven.compiler.release>
</properties>
Expand Down
File renamed without changes.

0 comments on commit 1f0980e

Please sign in to comment.