-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (44 loc) · 1.31 KB
/
e2e.yml
File metadata and controls
56 lines (44 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: E2E Tests
on:
workflow_call:
workflow_dispatch:
env:
REPLANE_SUPERADMIN_API_KEY: test-superuser-api-key-for-e2e
REPLANE_ADMIN_API_PORT: 8084
REPLANE_EDGE_API_PORT: 8085
jobs:
e2e:
name: E2E Tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build packages
run: pnpm run build
- name: Start services
working-directory: packages/test-suite
run: docker compose up -d --wait
- name: Run E2E tests
working-directory: packages/test-suite
env:
REPLANE_ADMIN_API_BASE_URL: http://localhost:${{ env.REPLANE_ADMIN_API_PORT }}
REPLANE_EDGE_API_BASE_URL: http://localhost:${{ env.REPLANE_EDGE_API_PORT }}
run: pnpm test:e2e
- name: Show logs on failure
if: failure()
working-directory: packages/test-suite
run: docker compose logs
- name: Cleanup
if: always()
working-directory: packages/test-suite
run: docker compose down -v