Skip to content

Commit 9014133

Browse files
committed
ci: run e2e with Postgres and Chrome (CL-9556)
1 parent 7fe22a3 commit 9014133

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,36 @@ jobs:
4646
- uses: actions/checkout@v4
4747
- uses: ./.github/actions/setup-workbench
4848
- run: bun run test
49+
50+
# Integration and browser suites under e2e/. CI=true turns DB- and
51+
# Chrome-gated skips into hard failures.
52+
e2e:
53+
needs: setup
54+
runs-on: ubuntu-latest
55+
timeout-minutes: 20
56+
services:
57+
postgres:
58+
image: postgres:16
59+
env:
60+
POSTGRES_USER: postgres
61+
POSTGRES_PASSWORD: postgres
62+
POSTGRES_DB: workbench
63+
ports:
64+
- 5432:5432
65+
options: >-
66+
--health-cmd "pg_isready -U postgres"
67+
--health-interval 5s
68+
--health-timeout 5s
69+
--health-retries 10
70+
env:
71+
CI: "true"
72+
DATABASE_URL: postgres://postgres:postgres@localhost:5432/workbench
73+
HUB_DATA_DIR: ${{ runner.temp }}/hub-data
74+
steps:
75+
- uses: actions/checkout@v4
76+
- uses: ./.github/actions/setup-workbench
77+
- id: chrome
78+
uses: browser-actions/setup-chrome@v1
79+
- run: echo "CHROME_PATH=${{ steps.chrome.outputs.chrome-path }}" >> "$GITHUB_ENV"
80+
- run: mkdir -p "$HUB_DATA_DIR"
81+
- run: bun run test:e2e

0 commit comments

Comments
 (0)