Merge pull request #180 from guillotinaweb/dependabot/npm_and_yarn/lo… #412
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |