Skip to content

Commit 6040871

Browse files
chore: try using a local image of unleash enterprise for testing frontend
1 parent 9547fd9 commit 6040871

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.github/workflows/e2e.frontend.yaml

+26-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,33 @@
11
name: e2e:frontend
2-
on: [deployment_status]
2+
on:
3+
pull_request:
4+
# paths:
5+
# - 'frontend/**'
36
jobs:
47
e2e:
5-
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' && contains(github.event.deployment_status.target_url, 'unleash-monorepo-frontend')
68
runs-on: ubuntu-latest
9+
services:
10+
db:
11+
image: postgres
12+
env:
13+
POSTGRES_USER: unleash_user
14+
POSTGRES_PASSWORD: password
15+
POSTGRES_DB: unleash_test
16+
POSTGRES_INITDB_ARGS: "--no-sync"
17+
ports:
18+
- 5432:5432
19+
options: >-
20+
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
21+
unleashEnterprise:
22+
image: 726824350591.dkr.ecr.eu-central-1.amazonaws.com/unleash-enterprise:latest
23+
credentials:
24+
username: AWS
25+
password: ${{ secrets.ECR_ENTERPRISE_TOKEN }}
26+
env:
27+
DATABASE_URL: "postgres://postgres:unleash@localhost/unleash"
28+
UNLEASH_LICENSE: ${{ secrets.FRONTEND_TEST_LICENSE }}
29+
30+
731
strategy:
832
matrix:
933
test:

0 commit comments

Comments
 (0)