integrate it into the ci

This commit is contained in:
kharhamel 2020-04-14 20:16:51 +02:00
parent a2ed7164e4
commit 56093201fb
3 changed files with 29 additions and 3 deletions

View file

@ -65,3 +65,21 @@ jobs:
- name: "Jasmine"
run: yarn test
working-directory: "back"
e2e:
name: "End to end testing with cypress"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v2.0.0"
- name: "Init .env"
run: "cp .env.template .env"
- name: "Init containers"
run: "docker-compose -f docker-compose.yaml -f docker-compose.ci.yml run --rm wait_app" #start the containers and then wait for the website to be online
- name: "Run cypress"
run: "docker-compose -f docker-compose.yaml -f docker-compose.ci.yml up --exit-code-from cypress cypress" # run cypress in docker-compose and get its exit code