Skip to content

Commit

Permalink
Configure cypress cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
wlsf82 committed Jun 24, 2024
1 parent a1035f2 commit d4417ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ jobs:
uses: actions/checkout@v4
- name: Cypress run
uses: cypress-io/github-action@v6
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
with:
command: npm run test:cloud
1 change: 1 addition & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { defineConfig } = require('cypress')

module.exports = defineConfig({
projectId: 'r81t1a',
viewportHeight: 880,
viewportWidth: 1280,
e2e: {},
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"cy:open": "cypress open",
"cy:open:mobile": "cypress open --config viewportWidth=410,viewportHeight=860",
"test": "cypress run",
"test:mobile": "cypress run --config viewportWidth=410,viewportHeight=860"
"test:mobile": "cypress run --config viewportWidth=410,viewportHeight=860",
"test:cloud": "cypress run --record"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit d4417ae

Please sign in to comment.