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