From 3aec774cf3958b89fdcde178b9e134bb53650053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Tue, 23 Nov 2021 15:49:44 +0100 Subject: [PATCH] Adding end-to-end test run in Github actions --- .github/workflows/end_to_end_tests.yml | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/end_to_end_tests.yml diff --git a/.github/workflows/end_to_end_tests.yml b/.github/workflows/end_to_end_tests.yml new file mode 100644 index 00000000..32ebaf46 --- /dev/null +++ b/.github/workflows/end_to_end_tests.yml @@ -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