-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.23 KB
/
main.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
name: LinkedOut Backend Test
on:
push:
pull_request:
branches: [ master, develop ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
environment: entourage-job-back-test
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: linkedout
POSTGRES_USER: linkedout
POSTGRES_DB: linkedout
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
CI: true
NODE_ENV: test
DATABASE_URL: ${{ secrets.DATABASE_URL }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
CHROME_PATH: ${{ secrets.CHROME_PATH }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- uses: ianwalter/playwright-container@43940dfa7d309fe3569b9df407ae9e84dcbf2e7f
with:
args:
yarn install
- uses: ianwalter/playwright-container@43940dfa7d309fe3569b9df407ae9e84dcbf2e7f
with:
args:
yarn db:migrate
- uses: ianwalter/playwright-container@43940dfa7d309fe3569b9df407ae9e84dcbf2e7f
with:
args:
yarn test:e2e