Skip to content

Update build matrix for macos/arm64 and node20 #209

Update build matrix for macos/arm64 and node20

Update build matrix for macos/arm64 and node20 #209

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@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: Cache local Maven repository
uses: actions/cache@v4
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: mvn verify -B --file pom.xml