33 lines
770 B
YAML
33 lines
770 B
YAML
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
|
|
|
|
name: "End to end tests"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
pull_request:
|
|
|
|
jobs:
|
|
|
|
end-to-end-tests:
|
|
name: "End-to-end testcafe tests"
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: "actions/checkout@v2.0.0"
|
|
|
|
- name: "Setup .env file"
|
|
run: cp .env.template .env
|
|
|
|
- name: "Start environment"
|
|
run: docker-compose up -d
|
|
|
|
- name: "Wait for environment to build"
|
|
run: docker-compose logs -f --tail=0 front | grep -m 1 "Compiled successfully"
|
|
|
|
- name: "Run tests"
|
|
run: UID=$(id -u) GID=$(id -g) docker-compose -f docker-compose.testcafe.yml --exit-code-from testcafe up
|