Skip to content

Commit

Permalink
only run integration tests for a subset of integrations during PR builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cgardens committed Oct 26, 2020
1 parent d3f7afc commit d687ce6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions tools/bin/integration_test_pr.sh
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions tools/bin/standard_test_pr.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d687ce6

Please sign in to comment.