diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 2569465d4..814e54b6b 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -7,10 +7,11 @@ permissions: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: - java: [21, 24, 25, '26-ea'] + os: [ubuntu-latest, windows-latest, macos-latest] + java: [21, 24, 25, '26-ea'] name: Build with Java ${{ matrix.java }} steps: - uses: actions/checkout@v5 @@ -22,6 +23,7 @@ jobs: java-version: ${{ matrix.java }} - name: Check Maven version and directory contents + shell: bash run: | mvn -v echo "** ls **" diff --git a/openpdf-core/src/test/java/org/openpdf/text/pdf/fonts/FontTest.java b/openpdf-core/src/test/java/org/openpdf/text/pdf/fonts/FontTest.java index d5bf1f8f8..3f03839b1 100644 --- a/openpdf-core/src/test/java/org/openpdf/text/pdf/fonts/FontTest.java +++ b/openpdf-core/src/test/java/org/openpdf/text/pdf/fonts/FontTest.java @@ -1,5 +1,5 @@ package org.openpdf.text.pdf.fonts; - +import org.junit.jupiter.api.Assumptions; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; @@ -84,6 +84,7 @@ void testStyleSettingByPredicate(int style) { @ParameterizedTest(name = "Style {0}") @MethodSource("getStyles") void testFontStyleOfStyledFont(int style) { + Assumptions.assumeFalse(System.getProperty("os.name").toLowerCase().contains("mac"), "Font not available on macOS"); final Font font = FontFactory.getFont(FONT_NAME_WITH_STYLES, DEFAULT_FONT_SIZE, style); // For the font Courier, there is no Courier-Underline or Courier-Strikethrough font available.