source-postgres ci - for testing only #181
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflows runs airbyte-ci connectors --name=source-postgres test | |
# We created this in the context of our project to improve CI performances for this connector | |
# It's made to be triggered manually from the GitHub UI | |
# It will allow us to collect performance metrics outside of the context of nightly builds | |
# And also to use different runner types (e.g. conn-prod-xxlarge-runner) to test the connector with various resources. | |
name: source-postgres ci - for testing only | |
on: | |
schedule: | |
# Run three time a day to collect performance metrics and observe variance | |
- cron: "0 9,13,17 * * *" | |
workflow_dispatch: | |
inputs: | |
runner: | |
description: "The runner to use for this job" | |
default: "conn-prod-xlarge-runner" | |
jobs: | |
source_postgres_ci: | |
name: Source Postgres CI on ${{ inputs.runner || 'conn-prod-xlarge-runner'}} | |
runs-on: ${{ inputs.runner || 'conn-prod-xlarge-runner'}} | |
steps: | |
- name: Checkout Airbyte | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.inputs.repo }} | |
ref: ${{ github.event.inputs.gitref }} | |
- name: Extract branch name | |
shell: bash | |
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT | |
id: extract_branch | |
- name: Test source-postgres | |
uses: ./.github/actions/run-dagger-pipeline | |
with: | |
context: "master" | |
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }} | |
sentry_dsn: ${{ secrets.SENTRY_AIRBYTE_CI_DSN }} | |
git_branch: ${{ steps.extract_branch.outputs.branch }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
subcommand: "connectors --name=source-postgres test" |