-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (38 loc) · 1.17 KB
/
e2e_tests.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
name: e2e tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
cypress-run:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Postgres
run: docker run -d -e POSTGRES_DB=guillotina -e POSTGRES_USER=guillotina -e POSTGRES_HOST_AUTH_METHOD=trust -p 127.0.0.1:5432:5432 --name postgres postgres:9.6
- name: guillotina
run: docker run -d -v /home/runner/work/guillotina_react/guillotina_react/e2e/g_conf/:/g_conf/ --link=postgres -p 0.0.0.0:8080:8080 plone/guillotina:latest g -c /g_conf/config.yaml
- name: Install base modules
run: yarn
- name: Build dist
run: yarn
working-directory: "."
- name: Start Server
run: yarn start &
working-directory: e2e/example
- name: Cypress run
uses: cypress-io/github-action@v2
with:
build: yarn
wait-on: 'http://localhost:3000'
working-directory: e2e
- name: Artifacts
uses: actions/upload-artifact@v1
if: always()
with:
name: cypress-videos
path: e2e/cypress/videos