forked from activepieces/activepieces
-
Notifications
You must be signed in to change notification settings - Fork 0
109 lines (96 loc) · 2.71 KB
/
tests-e2e-ce.yml
File metadata and controls
109 lines (96 loc) · 2.71 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
name: E2E Tests - Community Edition
on:
workflow_call:
workflow_dispatch:
env:
AP_DEV_PIECES: store,webhook
AP_PIECES_SYNC_MODE: NONE
AP_PIECES_SOURCE: FILE
AP_API_KEY: api-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_REDIS_URL: redis://localhost:6379
AP_QUEUE_MODE: REDIS
AP_FRONTEND_URL: http://localhost:4200
AP_WEBHOOK_TIMEOUT_SECONDS: "30"
AP_TRIGGER_DEFAULT_POLL_INTERVAL: "1"
AP_EXECUTION_MODE: UNSANDBOXED
AP_TELEMETRY_ENABLED: "false"
AP_ENVIRONMENT: test
AP_JWT_SECRET: "secret"
AP_ENCRYPTION_KEY: "fdbe51af3678563560972e4a912aee6d"
jobs:
test-e2e-ce:
runs-on: depot-ubuntu-24.04-4
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@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 2
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.bun/install/cache
key: bun-${{ hashFiles('bun.lock', 'package.json') }}
restore-keys: bun-
- name: Setup nodejs
uses: actions/setup-node@v3
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: |
npm run test:e2e
env:
CI: true
- name: Upload Playwright Report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-ce
path: packages/tests-e2e/playwright-report/
retention-days: 10
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-ce
path: packages/tests-e2e/test-results/
retention-days: 10