From f6dcdf88b17477c522c2149f9ad81f073f660b28 Mon Sep 17 00:00:00 2001 From: Zohaib Anwar Date: Mon, 16 Dec 2024 00:33:27 -0800 Subject: [PATCH] updated for master --- .github/workflows/nextflow_CI.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/nextflow_CI.yml b/.github/workflows/nextflow_CI.yml index d5ca39b..f775bf1 100644 --- a/.github/workflows/nextflow_CI.yml +++ b/.github/workflows/nextflow_CI.yml @@ -4,6 +4,9 @@ on: push: branches: - development + pull_request: + branches: + - master jobs: test_sarscov2_user: @@ -35,3 +38,12 @@ jobs: - name: Run pipeline test (reference) run: | nextflow run main.nf -profile docker --prefix "covidmvp-$(date +%Y-%m-%d)" --end_date $(date +%Y-%m-%d) -params-file covidmvp_clinical_params.yaml + + check_success: + name: Check if all tests passed + needs: [test_sarscov2_user, test_sarscov2_reference] + runs-on: ubuntu-latest + steps: + - name: Check job status + if: ${{ failure() }} + run: exit 1