Skip to content

Commit

Permalink
ci: run tests on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Sep 28, 2023
1 parent 04558ca commit c9486cd
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ concurrency:
jobs:

build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
runner:
- ubuntu-latest
- macos-latest
outputs:
default_runner: ubuntu-latest
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
Expand All @@ -33,16 +41,18 @@ jobs:
run: tar czvf coatjava.tar.gz coatjava
- uses: actions/upload-artifact@v3
with:
name: build
name: build_${{ matrix.runner }}
retention-days: 1
path: coatjava.tar.gz

test_coatjava:
needs: [ build ]
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
runner:
- ubuntu-latest
- macos-latest
id:
- kpp
- eb-ep
Expand All @@ -57,6 +67,7 @@ jobs:
- { id: eb-epc, cmd: ./run-eb-tests.sh -100 electronprotonC }
- { id: eb-enc, cmd: ./run-eb-tests.sh -100 electronneutronC }
- { id: eb-eftpi, cmd: ./run-eb-tests.sh -100 electronFTpion }
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
Expand All @@ -66,7 +77,7 @@ jobs:
distribution: zulu
- uses: actions/download-artifact@v3
with:
name: build
name: build_${{ matrix.runner }}
- name: untar build
run: tar xzvf coatjava.tar.gz
- name: run test
Expand All @@ -76,7 +87,7 @@ jobs:
test_run-groovy:
needs: [ build ]
runs-on: ubuntu-latest
runs-on: ${{ needs.build.outputs.default_runner }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
Expand All @@ -90,7 +101,7 @@ jobs:
groovy-version: 4.x
- uses: actions/download-artifact@v3
with:
name: build
name: build_${{ needs.build.outputs.default_runner }}
- name: untar build
run: tar xzvf coatjava.tar.gz
- name: test run-groovy
Expand Down

0 comments on commit c9486cd

Please sign in to comment.