Skip to content

Commit a330088

Browse files
create independent github action for connector version increment checks (#38041)
1 parent 5f85707 commit a330088

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Connectors Version Increment Check
2+
3+
concurrency:
4+
# This is the name of the concurrency group. It is used to prevent concurrent runs of the same workflow.
5+
#
6+
# - github.head_ref is only defined on PR runs, it makes sure that the concurrency group is unique for pull requests
7+
# ensuring that only one run per pull request is active at a time.
8+
#
9+
# - github.run_id is defined on all runs, it makes sure that the concurrency group is unique for workflow dispatches.
10+
# This allows us to run multiple workflow dispatches in parallel.
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
14+
on:
15+
pull_request:
16+
types:
17+
- opened
18+
- synchronize
19+
paths:
20+
- "airbyte-integrations/connectors/**/*"
21+
jobs:
22+
connectors_ci:
23+
name: Connectors Version Increment Check
24+
runs-on: connector-test-large
25+
timeout-minutes: 10
26+
steps:
27+
- name: Checkout Airbyte
28+
uses: actions/checkout@v4
29+
- name: Check PAT rate limits
30+
run: |
31+
./tools/bin/find_non_rate_limited_PAT \
32+
${{ secrets.GH_PAT_BUILD_RUNNER_OSS }} \
33+
${{ secrets.GH_PAT_BUILD_RUNNER_BACKUP }}
34+
- name: Fetch last commit id from remote branch [PULL REQUESTS]
35+
if: github.event_name == 'pull_request'
36+
id: fetch_last_commit_id_pr
37+
run: echo "commit_id=$(git ls-remote --heads origin ${{ github.head_ref }} | cut -f 1)" >> $GITHUB_OUTPUT
38+
- name: Test connectors [PULL REQUESTS]
39+
if: github.event_name == 'pull_request'
40+
uses: ./.github/actions/run-airbyte-ci
41+
with:
42+
context: "pull_request"
43+
dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }}
44+
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
45+
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
46+
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
47+
sentry_dsn: ${{ secrets.SENTRY_AIRBYTE_CI_DSN }}
48+
git_branch: ${{ github.head_ref }}
49+
git_revision: ${{ steps.fetch_last_commit_id_pr.outputs.commit_id }}
50+
github_token: ${{ env.PAT }}
51+
s3_build_cache_access_key_id: ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
52+
s3_build_cache_secret_key: ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
53+
subcommand: "connectors --modified test --only-step=version_inc_check --global-status-check-context='Version increment check for Java connectors' --global-status-check-description='Checking if java connectors modified in this PR got their version bumped'"

0 commit comments

Comments
 (0)