diff --git a/.github/workflows/cypress-tests.yml b/.github/workflows/cypress-tests.yml index 460331d0c..906216a3f 100644 --- a/.github/workflows/cypress-tests.yml +++ b/.github/workflows/cypress-tests.yml @@ -16,8 +16,11 @@ jobs: cypress-run: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: isbang/compose-action@v1.4.1 + - name: Checkout + uses: actions/checkout@v3 + + - name: Build and Run Application + uses: isbang/compose-action@v1.4.1 env: GOOGLE_CREDENTIALS_BASE64: ${{ secrets.GOOGLE_CREDENTIALS_BASE64 }} with: @@ -25,7 +28,16 @@ jobs: docker-compose.yml docker-compose.test.yml compose-flags: "--env-file test.env" - - uses: cypress-io/github-action@v5.0.9 + + - name: Check Application Health + uses: jtalk/url-health-check-action@v3 + with: + url: http://localhost/api/v3/testConnection + max-attempts: 12 + retry-delay: 5s + + - name: Cypress Run + uses: cypress-io/github-action@v5 with: config: baseUrl=http://localhost spec: cypress/e2e/!(third-party)/**/*.cy.js