From ef60f89c66dd3afe5aa848912d33ac289c74ef37 Mon Sep 17 00:00:00 2001 From: joergi <1439809+joergi@users.noreply.github.com> Date: Sun, 29 Sep 2024 23:23:26 +0200 Subject: [PATCH] uses matrix to only maintain one code --- .github/workflows/testing-special-issues.yml | 27 +++++--------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/.github/workflows/testing-special-issues.yml b/.github/workflows/testing-special-issues.yml index 73d14c6..92fd245 100644 --- a/.github/workflows/testing-special-issues.yml +++ b/.github/workflows/testing-special-issues.yml @@ -33,8 +33,12 @@ jobs: if: steps.check_files.outputs.files_exists == 'false' run: exit 1 - special-bash-linux: - runs-on: ubuntu-latest + special-issues: + strategy: + matrix: + os: [ macos, ubuntu ] + fail-fast: false # Allows to see results from other combinations + runs-on: ${{ matrix.os }}-latest steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Download Special Issues linux @@ -52,22 +56,3 @@ jobs: - name: File exists if: steps.check_files.outputs.files_exists == 'false' run: exit 1 - special-bash-macos: - runs-on: macos-latest - steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - name: Download Special Issues Mac - id: specialIssues - run: bash ./linux_mac/magpi-special-issue-downloader.sh -# check if files are existing - - name: "Check file existence MacOs special issues" - id: check_files - uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0 - with: - files: "special_issues/MagPiSE1.pdf, special_issues/Projects_Book_v3.pdf, special_issues/Retro_Gaming.pdf, special_issues/C_and_GUI_Programming_2nd_Edition.pdf" - fail: true - - name: lslah - run: ls -lah special_issues/ - - name: File exists - if: steps.check_files.outputs.files_exists == 'false' - run: exit 1