From 37afb62b8742b0ab3ff5e04d41c32c0363a47d46 Mon Sep 17 00:00:00 2001 From: binrysearch Date: Sun, 7 Jul 2024 20:46:09 +0100 Subject: [PATCH] cypress ci and docker --- .github/workflows/nodejs.yml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 538e27048..9406722ca 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -23,4 +23,4 @@ jobs: env: CI: true - name: Cypress run - uses: cypress-io/github-action@v6 + - run: npm run test:cypress diff --git a/package.json b/package.json index d45bab8aa..2695dfe63 100644 --- a/package.json +++ b/package.json @@ -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",