forked from OpenSlides/OpenSlides
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.26 KB
/
test-integration.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
---
name: Run integration tests
on: [push, pull_request]
jobs:
run-tests:
name: 'Runs integration tests'
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Use example data instead of initial data
working-directory: "./openslides-backend/global/data/"
run: cp example-data.json initial-data.json
- name: Start setup
working-directory: "./dev/localprod"
run: |
./setup.sh
echo -n "admin" > secrets/superadmin
docker compose build --parallel
docker compose up -d
- name: Wait for dev setup
uses: iFaxity/[email protected]
with:
resource: https://localhost:8000
timeout: 30000
- name: Start tests
working-directory: "./openslides-client"
run: make run-playwright
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: "./openslides-client/client/tests/playwright-report/"
retention-days: 7
- name: Shut down setup
if: always()
working-directory: "./dev/localprod"
run: docker compose down --volumes --remove-orphans