Skip to content

Commit

Permalink
cypress ci and docker
Browse files Browse the repository at this point in the history
  • Loading branch information
binrysearch committed Jul 7, 2024
1 parent b8187dc commit 37afb62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
env:
CI: true
- name: Cypress run
uses: cypress-io/github-action@v6
- run: npm run test:cypress
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"test:watch": "jest --watch",
"test:jest": "jest --coverage --silent --ci --coverage --coverageReporters=\"text\" --coverageReporters=\"text-summary\"",
"test:jshint": "jshint ./src --verbose && jshint ./tests --verbose",
"test:cypress": "start-server-and-test dev http://localhost:10001/dist/intro.js 'docker run -it -v $PWD:/e2e -w /e2e --entrypoint=cypress cypress/included run --env type=regression'",
"test:cypress-docker": "start-server-and-test dev http://localhost:10001/dist/intro.js 'docker run -it -v $PWD:/e2e -w /e2e --entrypoint=cypress cypress/included run --env type=regression'",
"test:cypress": "start-server-and-test dev http://localhost:10001/dist/intro.js 'cypress run --env type=regression'",
"release": "./bin/release.sh || true",
"prebuild": "rimraf ./dist",
"build": "rollup -c",
Expand Down

0 comments on commit 37afb62

Please sign in to comment.