Skip to content

Commit

Permalink
conditional cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
binrysearch committed Jul 7, 2024
1 parent b8f9e13 commit 020d4b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm ci
- run: npm run build
- run: npm run test:jest
env:
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@
"types": "src/index.d.ts",
"scripts": {
"prettier": "prettier --write '(src|tests)/**/*.(js|ts|json|html)' '!tests/cypress/setup/dist'",
"test": "run-p test:prettier test:jest test:jshint test:cypress",
"test": "run-p test:prettier test:jest test:cypress",
"test:prettier": "prettier --check '(src|tests)/**/*.(js|ts|json|html)' '!tests/cypress/setup/dist'",
"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-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'",
"test:cypress": "start-server-and-test dev http://localhost:10001/dist/intro.js 'if [ -x \"$(command -x docker)\" ]; then docker run -it -v $PWD:/e2e -w /e2e --entrypoint=cypress cypress/included run --env type=regression; else cypress run --env type=regression; fi'",
"release": "./bin/release.sh || true",
"prebuild": "rimraf ./dist",
"build": "rollup -c",
Expand Down

0 comments on commit 020d4b5

Please sign in to comment.