-
-
Notifications
You must be signed in to change notification settings - Fork 219
56 lines (46 loc) · 1.28 KB
/
ci-e2e-prisma.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
name: CI-e2e-prisma
on:
push:
branches: [dev, main]
paths:
- 'packages/db-main-prisma'
- 'package.json'
- '*.lock'
- '.yarnrc.yml'
- '.github/**'
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'packages/db-main-prisma'
- 'package.json'
- '*.lock'
- '.yarnrc.yml'
- '.github/**'
jobs:
e2e:
# containers must run in Linux based operating systems
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: packages/db-main-prisma
strategy:
fail-fast: false
matrix:
database:
- e2e-postgres
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: ⚙️ Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: 📥 Monorepo install
uses: ./.github/actions/yarn-nm-install
- name: 🏁 Start postgresql
run: docker compose -f docker-compose.e2e.yml up ${{ matrix.database }} --wait --detach
- name: 🧪 E2E prisma
run: yarn test-e2e
env:
E2E_PRISMA_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/db-main-prisma-e2e?schema=public