Skip to content

Commit

Permalink
cypress_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
meghanakr7 committed May 5, 2024
1 parent 523dfbb commit 766e832
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/cyress_tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Cypress Tests

on: push

jobs:
cypress-run:
runs-on: ubuntu-latest
Expand All @@ -14,9 +12,20 @@ jobs:
java-version: '11'
distribution: 'temurin'
architecture: x64

- name: Build with Maven
run: mvn clean install

- name: Start application
run: mvn spring-boot:run -Dskip=true
- name: Wait for localhost page to be accessible
run: |
while true; do
if curl -s http://localhost:8070/Geoweaver -o /dev/null; then
break
else
sleep 5
fi
done
# Install npm dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
Expand All @@ -26,4 +35,4 @@ jobs:
spec: cypress/e2e/spec.cy.js
working-directory: ./cypress
start: |
npx cypress run
npx cypress run

0 comments on commit 766e832

Please sign in to comment.