Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,41 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-workbench
- run: bun run test

# Integration and browser suites under e2e/. CI=true turns DB- and
# Chrome-gated skips into hard failures.
e2e:
needs: setup
runs-on: ubuntu-latest
timeout-minutes: 20
services:
postgres:
image: pgvector/pgvector:pg16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: workbench
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 5s
--health-timeout 5s
--health-retries 10
env:
CI: "true"
DATABASE_URL: postgres://postgres:postgres@localhost:5432/workbench
# Throwaway keys for the ephemeral CI hub; same placeholders as .env.example.
CREDENTIAL_ENCRYPTION_KEY: "0000000000000000000000000000000000000000000000000000000000000000"
PRINCIPAL_KEY_ENCRYPTION_KEY: "1111111111111111111111111111111111111111111111111111111111111111"
SIDECAR_CREDENTIAL_ENCRYPTION_KEY: "2222222222222222222222222222222222222222222222222222222222222222"
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-workbench
- id: chrome
uses: browser-actions/setup-chrome@v1
- run: echo "CHROME_PATH=${{ steps.chrome.outputs.chrome-path }}" >> "$GITHUB_ENV"
- run: |
mkdir -p "$RUNNER_TEMP/hub-data"
echo "HUB_DATA_DIR=$RUNNER_TEMP/hub-data" >> "$GITHUB_ENV"
- run: bun run test:e2e
Loading