Skip to content

chore: add Volta configuration to docusaurus #27847

chore: add Volta configuration to docusaurus

chore: add Volta configuration to docusaurus #27847

name: Airbyte CI for Connector Contributions
# This workflow is used to run connector tests for contributors.
# It can be triggered manually via slash command or workflow dispatch.
# It also will run on push events to forks, if the fork has "BYO Secrets" defined.
on:
workflow_dispatch:
inputs:
repo:
description: "The repository name"
required: false
type: string
gitref:
description: "The git reference (branch or tag)"
required: false
type: string
comment-id:
description: "The ID of the comment triggering the workflow"
required: false
type: number
pr:
description: "The pull request number, if applicable"
required: false
type: number
push:
jobs:
get-context:
name: "Get Context"
runs-on: ubuntu-24.04
steps:
- name: Set Skip Flag [${{ github.event_name }}, ${{ github.repository }}]
id: set-skip-flag
if: >
github.event_name == 'push' &&
( github.repository == 'airbytehq/airbyte' ||
vars.GCP_PROJECT_ID == ''
)
run: |
echo "Push event, but we're either not on a fork or we don't have BYO secrets; no need to run tests."
echo "skip=true" >> $GITHUB_OUTPUT
outputs:
skip: ${{ steps.set-skip-flag.outputs.skip || 'false' }}
post-start-comment:
name: "Post Start Comment"
needs: get-context
runs-on: ubuntu-24.04
if: >
github.event_name != 'push' &&
needs.get-context.outputs.skip != 'true'
steps:
- name: Append start comment
id: post-start-comment
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
with:
comment-id: ${{ inputs.comment-id }}
issue-number: ${{ inputs.pr }}
reactions: "+1"
body: |
> **Connector CI Tests Started**
>
> These tests will leverage Airbyte's integration test credentials.
>
> [Check job output.](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id}})
outputs:
comment-id: ${{ steps.post-start-comment.outputs.comment-id }}
call-connector-ci-tests:
# Run always for 'workflow_dispatch' events.
# Run for 'push' events on forks, but only if the fork defines "BYO Secrets".
name: "Call Connector CI Tests"
needs: [get-context, post-start-comment]
if: needs.get-context.outputs.skip != 'true'
uses: ./.github/workflows/connector-ci-checks.yml
with:
repo: "${{ inputs.repo || github.repository }}"
gitref: "${{ inputs.gitref || github.ref_name }}"
comment-id: "${{ needs.post-start-comment.outputs.comment-id }}"
pr: "${{ github.event_name == 'workflow_dispatch' && inputs.pr || '' }}"
secrets: inherit
post-end-comment:
name: "Post Completion Comment and Status"
needs:
- get-context
- post-start-comment
- call-connector-ci-tests
runs-on: ubuntu-24.04
if: >
always() &&
github.event_name != 'push' &&
needs.get-context.outputs.skip != 'true' &&
needs.post-start-comment.outputs.comment-id != ''
steps:
- name: Append success comment
if: needs.call-connector-ci-tests.outputs.result == 'success'
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
with:
comment-id: ${{ needs.post-start-comment.outputs.comment-id }}
issue-number: ${{ inputs.pr }}
body: |
> ✅ Connector CI Tests job completed successfully. See logs for details.
- name: Append failure comment
if: needs.call-connector-ci-tests.outputs.result != 'success'
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
with:
comment-id: ${{ needs.post-start-comment.outputs.comment-id }}
issue-number: ${{ inputs.pr }}
body: |
> ❌ Connector CI Tests job failed. Please check the logs for details.