From ea7118e46dcd8701f590c68ce26146d226b54018 Mon Sep 17 00:00:00 2001 From: James Scherer Date: Fri, 6 Jan 2023 10:02:53 -0600 Subject: [PATCH] Automated system tests GitHub actions (#23) * checking to see if the setup script worked * Updating with docker-compose up and build actions * Added a curl for the app heartbeat * Moved the curl inside the same docker compose up step * Testing out the new host of 0.0.0.0 * Testing out the new host of 0.0.0.0, really this time * Really really this time * First attempt at using the official Cypress Github action * Trying more specific commands for cypress github actions * adding a longer timer for wait-on for Cypress * removed fail-fast strategy as there is no matrix --- .github/workflows/system-tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/system-tests.yml diff --git a/.github/workflows/system-tests.yml b/.github/workflows/system-tests.yml new file mode 100644 index 00000000..ff8c1317 --- /dev/null +++ b/.github/workflows/system-tests.yml @@ -0,0 +1,25 @@ +name: System Tests + +on: [push, workflow_dispatch] + +env: + ROSALUTION_KEY: not-a-real-key-but-need-to-resolve + +jobs: + system-tests: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Running the setup.sh script + run: | + sh setup.sh + - name: Cypress tests + uses: cypress-io/github-action@v5 + with: + working-directory: system-tests + browser: chrome + headed: false + start: docker-compose up --build -d + wait-on: 'http://local.rosalution.cgds' + wait-on-timeout: 120