From 19a9aca83f8861b47f10a4f86da5c5c0d9e857e8 Mon Sep 17 00:00:00 2001 From: Anton Burnashev Date: Wed, 12 Apr 2023 18:31:22 +0200 Subject: [PATCH] Add matrix collectors to every test_ workflow (#260) --- .github/workflows/test_common.yml | 2 +- .github/workflows/test_dbt_runner.yml | 11 +++++++++++ .github/workflows/test_destination_bigquery.yml | 11 +++++++++++ .github/workflows/test_destinations.yml | 11 +++++++++++ 4 files changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_common.yml b/.github/workflows/test_common.yml index 3c110bc29a..c9211b7737 100644 --- a/.github/workflows/test_common.yml +++ b/.github/workflows/test_common.yml @@ -77,7 +77,7 @@ jobs: shell: cmd matrix_job_required_check: - name: Test common check + name: Common tests needs: run_common runs-on: ubuntu-latest if: always() diff --git a/.github/workflows/test_dbt_runner.yml b/.github/workflows/test_dbt_runner.yml index 4a8465a68f..13838a4b0d 100644 --- a/.github/workflows/test_dbt_runner.yml +++ b/.github/workflows/test_dbt_runner.yml @@ -90,3 +90,14 @@ jobs: if: runner.os == 'Windows' name: Run dbt runner with venv - Windows shell: cmd + + matrix_job_required_check: + name: dbt runner tests + needs: run_dbt + runs-on: ubuntu-latest + if: always() + steps: + - name: Check matrix job results + if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') + run: | + echo "One or more matrix job tests failed or were cancelled. You may need to re-run them." && exit 1 diff --git a/.github/workflows/test_destination_bigquery.yml b/.github/workflows/test_destination_bigquery.yml index f4e17701ff..f82a8b3963 100644 --- a/.github/workflows/test_destination_bigquery.yml +++ b/.github/workflows/test_destination_bigquery.yml @@ -81,3 +81,14 @@ jobs: if: runner.os == 'Windows' name: Run tests Windows shell: cmd + + matrix_job_required_check: + name: BigQuery loader tests + needs: run_loader + runs-on: ubuntu-latest + if: always() + steps: + - name: Check matrix job results + if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') + run: | + echo "One or more matrix job tests failed or were cancelled. You may need to re-run them." && exit 1 diff --git a/.github/workflows/test_destinations.yml b/.github/workflows/test_destinations.yml index 92a8751eec..eb1b37807e 100644 --- a/.github/workflows/test_destinations.yml +++ b/.github/workflows/test_destinations.yml @@ -83,3 +83,14 @@ jobs: if: runner.os == 'Windows' name: Run tests Windows shell: cmd + + matrix_job_required_check: + name: Redshift, PostgreSQL and DuckDB + needs: run_loader + runs-on: ubuntu-latest + if: always() + steps: + - name: Check matrix job results + if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') + run: | + echo "One or more matrix job tests failed or were cancelled. You may need to re-run them." && exit 1