Skip to content

Commit

Permalink
Merge pull request #158 from MarcusT96/cypress-jonte
Browse files Browse the repository at this point in the history
added cypress job
  • Loading branch information
loken156 authored May 16, 2024
2 parents 8c008b5 + 8fbec03 commit 92ecf2c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/testDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,24 @@ on:

# The jobs to run in this workflow are defined here.
jobs:
cypress_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: cd ./Client && npm ci
- name: Install Cypress dependencies
run: cd ./Cypress && npm ci
- name: Run Cypress
run: npm run test

# The deploy job will run on the ubuntu-latest runner and will have the following steps.
deploy:
needs: cypress_tests
runs-on:
ubuntu-latest
# The steps to deploy the application to the server using SSH action.
Expand Down
8 changes: 3 additions & 5 deletions Cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@
"main": "index.js",
"scripts": {
"test-ui": "cypress open --browser chrome",
"test": "cypress run --browser chrome",
"test": "cypress run --browser chrome",
"make-steps": "node _auto-generate-step-definitions.js"
},
"cypress-cucumber-preprocessor": {
"json": {
"enabled": true
},
"stepDefinitions": [
"/specs/step_definitions/**/*.js"
]
}

},
"keywords": [],
"author": "",
Expand Down

0 comments on commit 92ecf2c

Please sign in to comment.