Skip to content

Bump the minor-java-dependencies group with 6 updates #404

Bump the minor-java-dependencies group with 6 updates

Bump the minor-java-dependencies group with 6 updates #404

Workflow file for this run

name: Build/test
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Test JDK transport/TLS provider for all LTS versions of Java on the latest Ubuntu and macOS runners
os: [ubuntu-latest, macos-latest]
java: [8, 11, 17, 21, 25]
transport: [JDK]
tls: [JDK]
exclude:
# The macos-14 (and presumably newer) runners are using arm64, and Temurin doesn't support Java 8 on arm64
- os: macos-latest
java: 8
include:
# Test native transport/TLS provider the most and least recent version of Java on each platform to keep the
# test matrix manageable. Exhaustive coverage would be best, but ultimately, we're testing somebody else's
# stuff rather than our own, and we can aim for a representative sample instead.
- os: ubuntu-latest
java: 8
transport: native
tls: native
# Again, we can't use Java 8 with the latest macOS runners, so we go with the next-earliest version of Java
- os: macos-latest
java: 11
transport: native
tls: native
- os: ubuntu-latest
java: 25
transport: native
tls: native
- os: macos-latest
java: 25
transport: native
tls: native
fail-fast: false
name: JDK ${{ matrix.java }}, ${{ matrix.os }}, ${{ matrix.transport }} transport, ${{ matrix.tls }} SSL provider
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up JDK
uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: Cache local Maven repository
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Test with Maven
env:
PUSHY_TEST_TRANSPORT: ${{ matrix.transport }}
PUSHY_TEST_SSL_PROVIDER: ${{ matrix.tls }}
run: ./mvnw verify -B --file pom.xml