Repository navigation
114 lines (100 loc) · 2.89 KB
/
Copy pathtests-e2e-ee.yml
File metadata and controls
114 lines (100 loc) · 2.89 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: E2E Tests - Enterprise Edition
on:
workflow_call:
workflow_dispatch:
env:
AP_EDITION: ee
AP_DEV_PIECES: store,webhook
AP_PIECES_SYNC_MODE: NONE
AP_PIECES_SOURCE: FILE
AP_API_KEY: api-key
AP_LICENSE_KEY: ${{ secrets.EE_LICENSE_KEY }}
AP_DB_TYPE: POSTGRES
AP_POSTGRES_HOST: localhost
AP_POSTGRES_PORT: 5432
AP_POSTGRES_USERNAME: postgres
AP_POSTGRES_PASSWORD: postgres
AP_POSTGRES_DATABASE: activepieces
AP_POSTGRES_USE_SSL: "false"
AP_JWT_SECRET: "secret"
AP_ENCRYPTION_KEY: "fdbe51af3678563560972e4a912aee6d"
AP_FRONTEND_URL: http://localhost:4200
AP_REDIS_URL: redis://localhost:6379
AP_QUEUE_MODE: REDIS
AP_EXECUTION_MODE: SANDBOX_CODE_ONLY
AP_TELEMETRY_ENABLED: "false"
NODE_ENV: test
jobs:
test-e2e-ee:
runs-on: depot-ubuntu-24.04
timeout-minutes: 30
services:
postgres:
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: activepieces
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis:latest
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 2
- name: Cache dependencies
uses: actions/cache@v5
with:
path: ~/.bun/install/cache
key: bun-${{ hashFiles('bun.lock', 'package.json') }}
restore-keys: bun-
- name: Setup nodejs
uses: actions/setup-node@v6
with:
node-version: 24
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Run E2E tests
run: |
bun run test:e2e
env:
CI: true
- name: Upload Playwright Report
uses: actions/upload-artifact@v6
if: always()
with:
name: playwright-report-ee
path: packages/tests-e2e/playwright-report/
retention-days: 30
- name: Upload Test Results
uses: actions/upload-artifact@v6
if: always()
with:
name: test-results-ee
path: packages/tests-e2e/test-results/
retention-days: 30
- name: Notify on failure
if: failure()
run: |
echo "::error::Enterprise Edition E2E tests failed. This may indicate licensing or advanced feature issues."