-
Notifications
You must be signed in to change notification settings - Fork 98
54 lines (42 loc) · 1.28 KB
/
docker-prod-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
49
50
51
52
53
54
name: Run e2e Docker Compose PROD
on:
pull_request:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Create server environment file
run: touch server.prod.env
- name: Build the Docker stack
run: docker compose -f docker-compose.prod.yml up -d
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install e2e dependencies
working-directory: ./e2e
run: yarn install
- name: Install additional system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libasound2 libicu-dev libffi-dev libx264-dev
- name: Install Playwright
working-directory: ./e2e
run: npx playwright install
- name: Install Playwright dependencies
working-directory: ./e2e
run: npx playwright install-deps
- name: Run e2e Tests
working-directory: ./e2e
run: yarn test:ci
- name: Upload Playwright Report
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: ./e2e/playwright-report/
retention-days: 30