diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 3dc3f4dfd5ea..eefd0a2a2011 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -54,10 +54,20 @@ jobs: - name: Ensure no file change run: git status --porcelain && test -z "$(git status --porcelain)" - - name: Run Integration Tests + - name: Run Integration Tests (PR) + if: success() && github.ref != 'refs/heads/master' + run: ./tools/bin/integration_test_pr.sh + + - name: Run Integration Tests (Master) + if: success() && github.ref == 'refs/heads/master' run: ./gradlew --no-daemon integrationTest --scan -x generateProtocolClassFiles - - name: Run Standard Source Tests + - name: Run Standard Source Tests (PR) + if: success() && github.ref != 'refs/heads/master' + run: ./tools/bin/standard_test_pr.sh + + - name: Run Standard Source Tests (Master) + if: success() && github.ref == 'refs/heads/master' run: ./gradlew --no-daemon standardSourceTest --scan - name: Build Core Docker Images diff --git a/tools/bin/integration_test_pr.sh b/tools/bin/integration_test_pr.sh new file mode 100755 index 000000000000..2213262981a6 --- /dev/null +++ b/tools/bin/integration_test_pr.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -e + +. tools/lib/lib.sh + +assert_root + +./gradlew --no-daemon --scan -x generateProtocolClassFiles \ + :airbyte-integrations:connectors:destination-bigquery:integrationTest \ + :airbyte-integrations:connectors:destination-postgres:integrationTest \ + :airbyte-integrations:connectors:destination-csv:integrationTest \ + :airbyte-integrations:connectors:source-postgres-singer:integrationTest \ + :airbyte-integrations:connectors:source-stripe-singer:integrationTest \ + :airbyte-integrations:connectors:source-exchangeratesapi-singer:integrationTest diff --git a/tools/bin/standard_test_pr.sh b/tools/bin/standard_test_pr.sh new file mode 100755 index 000000000000..1ac9c448d79d --- /dev/null +++ b/tools/bin/standard_test_pr.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -e + +. tools/lib/lib.sh + +assert_root + +./gradlew --no-daemon --scan -x generateProtocolClassFiles \ + :airbyte-integrations:connectors:source-github-singer:standardSourceTest