From ecb864c3fe298624c05033fca654d442f7bab0c6 Mon Sep 17 00:00:00 2001 From: addwes7 Date: Mon, 18 May 2026 01:16:05 -0400 Subject: [PATCH] Added missing OS to maven.yml workflow --- .github/workflows/maven.yml | 4 +++- .../src/test/java/org/openpdf/text/pdf/fonts/FontTest.java | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 63e3cab6b..c1a366e58 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -7,9 +7,10 @@ permissions: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: + os: [ubuntu-latest, windows-latest, macos-latest] java: [21, 24, 25, 26, '27-ea'] name: Build with Java ${{ matrix.java }} steps: @@ -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..d6749a0bf 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,6 @@ 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 +85,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.