Skip to content

Commit

Permalink
Merge pull request #68 from jamezp/ci-update
Browse files Browse the repository at this point in the history
Update the CI runner.
  • Loading branch information
jamezp authored Dec 1, 2023
2 parents fdcd971 + 71d328e commit 430138c
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,29 @@ concurrency:
cancel-in-progress: true

jobs:
build:
format-check:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- name: Validate Formatting
run: |
mvn -B validate -Pformat-check -Denforcer.skip=true
build:
needs: format-check
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest ]
java: ['11', '17', '20']
java: ['11', '17', '21']

steps:
- uses: actions/checkout@v4
Expand All @@ -40,20 +55,4 @@ jobs:
if: failure()
with:
name: surefire-reports-${{ matrix.os }}-${{ matrix.java }}
path: '**/surefire-reports/*.txt'

format-check:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- name: Validate Formatting
run: |
mvn -B validate -Pformat-check -Denforcer.skip=true
path: '**/surefire-reports/*'

0 comments on commit 430138c

Please sign in to comment.