Bump gradle/actions from 3 to 4 #64
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: build and test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
validation: | |
name: "Gradle Wrapper Validation" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gradle/actions/wrapper-validation@v4 | |
build: | |
name: "Compile against JDKs and OSes" | |
needs: [ validation ] | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest ] | |
java: [ 8, 11, 17, 21, 23 ] | |
exclude: | |
- java: 8 | |
os: macos-latest | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.java }} | |
cache: gradle | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Execute Gradle build | |
run: ./gradlew build | |
test: | |
name: "Test" | |
needs: [ build ] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ 8, 11, 17, 21, 23 ] | |
fasterxmlVersion: [ 2.8.11, 2.9.10, 2.10.4, 2.11.3, 2.12.3, 2.13.4, 2.14.1, 2.15.4, 2.16.2, 2.17.2, 2.18.0 ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: temurin | |
cache: gradle | |
- run: | | |
./gradlew clean check --refresh-dependencies -PfasterxmlVersion=${{ matrix.fasterxmlVersion }} | |
./gradlew codeCoverageReport | |
results: | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
name: Verification Results | |
needs: [ test ] | |
steps: | |
- run: | | |
if [[ "${{ needs.test.result }}" == "success" || "${{ needs.test.result }}" == "skipped" ]]; then | |
exit 0 | |
else | |
exit 1 | |
fi |