-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 1.11 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
name: E2E Tests
on:
pull_request:
paths-ignore:
- 'docs/**'
push:
paths-ignore:
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Start the docker container for E2E
run: |
docker-compose -f docker-compose-debug.yaml pull
docker compose -f docker-compose-debug.yaml up
- name: Wait for grafana to start
uses: nev7n/wait_for_response@v1
with:
url: 'http://localhost:3099/'
responseCode: 200
timeout: 20000
interval: 500
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run E2E tests
run: yarn test:e2e
- name: Run E2E artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Stop the docker container
if: always()
run: docker-compose down