From 5b03e54fba5a234db183487ef64a4a771aecac75 Mon Sep 17 00:00:00 2001 From: Paul Pestov <10750176+paulpestov@users.noreply.github.com> Date: Thu, 16 May 2024 12:38:52 +0200 Subject: [PATCH] build: update ci --- .github/workflows/node.js.yml | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 5a6efe23..b90e2d0b 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -44,7 +44,7 @@ jobs: - name: Run tests run: | npm ci - npm run serve:prod & + npm run serve:mock-api & npm run test:e2e # - name: Save test video folder # if: always() diff --git a/package.json b/package.json index b226fc04..6aadeae8 100644 --- a/package.json +++ b/package.json @@ -79,9 +79,9 @@ "lint:vue": "eslint --ext .vue src", "release": "npm run build && npm publish", "serve:dev": "vite", - "serve:prod": "npm run build & ncp dist/ examples/dist/ & http-server examples -p 2222 -c-1 --silent --cors", + "serve:prod": "npm run build && ncp dist/ examples/dist/ & http-server examples -p 2222 -c-1 --silent --cors", "serve:mock-api": "http-server tests/mocks -p 8181 -c-1 --silent --cors", - "test:e2e": "start-server-and-test serve:mock-api 8181 cypress:headless", + "test:e2e": "start-server-and-test serve:prod 8181 cypress:headless", "write-changelog": "standard-version" }, "files": [