name: Integration Tests
on:
pull_request:
branches: [main]
paths:
- 'src/**'
- 'tests/**'
- 'ci-scripts/**'
- 'build.rs'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/integration-tests.yml'
workflow_dispatch:
concurrency:
group: integration-tests
cancel-in-progress: false
permissions:
contents: read
issues: write
jobs:
live:
name: Live provider tests
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
timeout-minutes: 30
env:
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
STACKQL_GITHUB_USERNAME: github-actions
STACKQL_GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
GITHUB_OWNER: ${{ github.repository_owner }}
GITHUB_REPO: ${{ github.event.repository.name }}
STACKQL_DEPLOY_LIVE_RUN_ID: gh${{ github.run_id }}-${{ github.run_attempt }}
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install stackql
uses: stackql/setup-stackql@v2
- name: Show stackql version
run: stackql --version
- name: Run live integration tests
run: bash ci-scripts/integration-test.sh