-
Notifications
You must be signed in to change notification settings - Fork 45
38 lines (37 loc) · 1.03 KB
/
cyress_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Cypress Tests
on: push
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 11 for x64
uses: actions/setup-java@v3
with:
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
uses: cypress-io/github-action@v6
with:
browser: chrome
spec: cypress/e2e/spec.cy.js
working-directory: ./cypress
start: |
npx cypress run