Skip to content

Commit

Permalink
Automated system tests GitHub actions (#23)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
JmScherer authored Jan 6, 2023
1 parent 9612af4 commit ea7118e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/system-tests.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ea7118e

Please sign in to comment.