Skip to content

Update GitHub Actions to their latest versions #254

Update GitHub Actions to their latest versions

Update GitHub Actions to their latest versions #254

Workflow file for this run

name: Build/test
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, macos-13, macos-latest]
java: [8, 17, 21]
transport: [native, JDK]
tls: [native, JDK]
# The macos-14 (and presumably newer) runners are using arm64, and Temurin doesn't support Java 8 on arm64
exclude:
- os: macos-latest
java: 8
fail-fast: false
name: JDK ${{ matrix.java }}, ${{ matrix.os }}, ${{ matrix.transport }} transport, ${{ matrix.tls }} SSL provider
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: Cache local Maven repository
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
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