Adding end-to-end test run in Github actions
This commit is contained in:
parent
a82f4e1813
commit
3aec774cf3
30
.github/workflows/end_to_end_tests.yml
vendored
Normal file
30
.github/workflows/end_to_end_tests.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# 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: "Run tests"
|
||||||
|
run: docker-compose -f docker-compose.testcafe.yml up
|
Loading…
Reference in New Issue
Block a user