-
Notifications
You must be signed in to change notification settings - Fork 189
60 lines (50 loc) · 1.48 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
49
50
51
52
53
54
55
56
57
58
59
60
name: End-to-end tests
on:
push:
branches:
- main
paths-ignore:
- "docs/**"
pull_request:
paths-ignore:
- "docs/**"
jobs:
main:
name: Run end-to-end tests
runs-on: depot-ubuntu-22.04-16
services:
postgres:
image: postgres:12.1-alpine
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup
uses: ./.github/actions/setup
- name: Build
uses: ./.github/actions/build
- name: Install end-to-end testing dependencies
working-directory: ./e2e
run: pnpm install
- name: Install Playwright Dependencies
working-directory: ./e2e
run: pnpm run playwright-install
- name: Clean end-to-end project
working-directory: ./e2e
run: pnpm run clean
- name: Build end-to-end project
working-directory: ./e2e
run: pnpm run build
- name: Outdated files, run `pnpm run build` in `e2e` and commit them
uses: ./.github/actions/require-empty-diff
- name: Run tests
timeout-minutes: 15
env:
DATABASE_URL: "postgres://postgres@localhost:5432/postgres"
working-directory: ./e2e
run: pnpm run test:ci