fix the symlink and bump #193
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cypress Tests | |
on: push | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up environment | |
env: | |
ACTIONS_STEP_DEBUG: true # Set ACTIONS_STEP_DEBUG variable | |
run: echo "Environment setup complete" | |
- 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: Reset Geoweaver password | |
run: java -jar ./target/geoweaver.jar resetpassword --password=1234 | |
- 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 | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
browser: chrome | |
spec: cypress/e2e/spec.cy.js | |
working-directory: ./cypress | |
- name: Archive screenshots on failure | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots | |
- name: Archive videos on failure | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cypress-videos | |
path: cypress/videos |