Skip to content

chore(deps): bump actions/checkout from 4.2.2 to 6.0.2 #67

chore(deps): bump actions/checkout from 4.2.2 to 6.0.2

chore(deps): bump actions/checkout from 4.2.2 to 6.0.2 #67

name: Integration Tests
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
concurrency:
group: integration-tests-${{ github.ref }}
cancel-in-progress: true
env:
NODE_ENV: test
API_PORT: '4100'
API_HOST: '127.0.0.1'
DATABASE_URL: postgres://postgres:postgres@localhost:5432/tx_agent_kit
AUTH_SECRET: ci-integration-auth-secret-${{ github.run_id }}-${{ github.run_attempt }}
API_CORS_ORIGIN: http://localhost:3000
AUTH_RATE_LIMIT_WINDOW_MS: '60000'
AUTH_RATE_LIMIT_MAX_REQUESTS: '100'
AUTH_RATE_LIMIT_IDENTIFIER_MAX_REQUESTS: '100'
RESEND_API_KEY: ''
RESEND_FROM_EMAIL: ''
WEB_BASE_URL: http://localhost:3000
GOOGLE_OIDC_ISSUER_URL: http://localhost:65535
GOOGLE_OIDC_CLIENT_ID: ci-google-client-id
GOOGLE_OIDC_CLIENT_SECRET: ci-google-client-secret
GOOGLE_OIDC_CALLBACK_URL: http://localhost:4100/v1/auth/google/callback
STRIPE_SECRET_KEY: ''
STRIPE_WEBHOOK_SECRET: ''
STRIPE_PRO_PRICE_ID: ''
STRIPE_PRO_METERED_PRICE_ID: ''
SUBSCRIPTION_GUARD_ENABLED: 'true'
TRUST_PROXY: 'false'
jobs:
integration:
name: Run All Integration Suites
runs-on: ubuntu-latest
timeout-minutes: 90
env:
WORKTREE_SETUP_BATCH_MAX_LATENCY_MS: '60000'
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6
with:
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Verify generated DB schemas are current
run: |
pnpm db:schemas:generate
if [[ -n "$(git status --short -- packages/infra/db/schemas)" ]]; then
echo "Generated DB schemas are stale. Run pnpm db:schemas:generate and commit the result."
git status --short -- packages/infra/db/schemas
git diff -- packages/infra/db/schemas
exit 1
fi
- name: Build packages
run: pnpm exec turbo run build --filter='./packages/**'
- name: Configure local env files
run: pnpm env:configure
- name: Install Temporal CLI
run: |
curl -sSf https://temporal.download/cli.sh | TEMPORAL_CLI_VERSION=1.1.2 sh
echo "$HOME/.temporalio/bin" >> $GITHUB_PATH
- name: Ensure infrastructure
run: pnpm infra:ensure
- name: Run integration suites
run: pnpm test:integration:quiet
- name: Run pgTAP tests
run: pnpm test:db:pgtap --skip-setup
- name: Run Temporal integration suite
run: pnpm test:temporal:integration