-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.13 KB
/
e2e.yaml
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
name: e2e
on:
push:
branches:
- "e2e"
env:
DOCKER_BUILDKIT: 1
MAILER_SECRET: E2E
AUTH_SECRET: E2E
jobs:
e2e:
runs-on: ubuntu-latest
services:
smtp:
image: "corpusops/mailhog:v1.0.1"
ports:
- 1025:1025
- 8025:8025
db:
image: "postgres:12"
env:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DATABASE: codex_text
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
strategy:
matrix:
node-version: [ 20.x ]
name: Run tests on Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test:e2e
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30