From 9f16486f635357c74bdc4db25c9ad145702dfc4e Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Wed, 23 Nov 2022 18:36:58 +0100 Subject: [PATCH] Run GH verification build on Linux and macOS Fixes https://github.com/eclipse-m2e/m2e-core/issues/1080 --- .github/workflows/maven.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 14d7d517a..b847227b5 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -12,7 +12,11 @@ on: jobs: build: - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} timeout-minutes: 45 steps: @@ -20,8 +24,7 @@ jobs: with: fetch-depth: 0 submodules: true - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - uses: actions/setup-java@v3 with: java-version: '17' distribution: 'temurin' @@ -40,7 +43,7 @@ jobs: - name: Upload Test Results uses: actions/upload-artifact@v3 with: - name: test-results + name: test-results-${{ matrix.os }} if-no-files-found: error path: | ${{ github.workspace }}/**/target/surefire-reports/*.xml @@ -52,4 +55,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: Event File - path: ${{ github.event_path }} \ No newline at end of file + path: ${{ github.event_path }}