Skip to content

Commit

Permalink
Merge branch 'ESIPFed:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
JYOSHREDDY authored May 21, 2024
2 parents 786414a + 2d1d2df commit 446b7d5
Show file tree
Hide file tree
Showing 69 changed files with 512,840 additions and 315 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/cypress_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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: Download Geoweaver JAR
run: wget https://github.com/ESIPFed/Geoweaver/releases/download/latest/geoweaver.jar

- name: Reset Geoweaver password
run: java -jar 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
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@
/install/
*.class


/gitcypress/node_modules/
**/.DS_Store

**/build/classes/**/*.class

.classpath
.project
.settings
sync.ffs_db
.vscode/launch.json
sync.ffs_db
.vscode/launch.json

cypress/node_modules/
node_modules/

24 changes: 24 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const { defineConfig } = require('cypress')
const os = require('os');
module.exports = defineConfig({
projectId: 'u864mu',
env: {
codeCoverage: {
url: 'http://localhost:3000/__coverage__'
},
home: os.homedir(),
},
e2e: {
experimentalStudio: true,
setupNodeEvents(on, config) {
on('task', {
log(message) {
// Then to see the log messages in the terminal
// cy.task("log", "my message");
console.log(message +'\n\n');
return null;
},
});}
}

})
24 changes: 24 additions & 0 deletions cypress/cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const { defineConfig } = require('cypress')
const os = require('os');
module.exports = defineConfig({
projectId: 'u864mu',
env: {
codeCoverage: {
url: 'http://localhost:3000/__coverage__'
},
home: os.homedir(),
},
e2e: {
experimentalStudio: true,
setupNodeEvents(on, config) {
on('task', {
log(message) {
// Then to see the log messages in the terminal
// cy.task("log", "my message");
console.log(message +'\n\n');
return null;
},
});}
}

})
Loading

0 comments on commit 446b7d5

Please sign in to comment.