-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.31 KB
/
E2E.yml
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
name: E2E tests
on:
push:
branches:
- main
paths-ignore:
- "documentation/**"
- "backend/**"
pull_request:
branches: [main]
types: [opened, synchronize]
paths-ignore:
- "documentation/**"
jobs:
test:
name: Playwright E2E tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "22"
- name: Setup .docker.env for services
run: |
echo "${{ secrets.ENV_VALUES }}" > frontend/.docker.env
echo "${{ secrets.ENV_VALUES }}" > backend/.docker.env
- name: Start docker-compose
run: docker-compose up --build -d
- name: Install dependencies
run: cd frontend && npm install
- name: Install PlayWright dependencies
run: cd frontend && npx playwright install-deps
- name: Install Playwright
run: cd frontend && npm install -g playwright
- name: Install Playwright browsers
run: cd frontend && npx playwright install
- name: Run Playwright E2E tests
run: cd frontend && npm run test:playwright