diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 801af40..4268fcb 100755 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -47,11 +47,12 @@ jobs: - run: pnpm test -- --browser=${{ matrix.browser }} ci-test-e2e: - runs-on: ubuntu-latest needs: [ci] strategy: matrix: - node-version: [18.x, 20.x, 21.x] + node-version: [18.x] + os: [ubuntu-latest] #, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} env: EXISTING_VERSIONS: '' steps: @@ -64,7 +65,7 @@ jobs: registry-url: 'https://registry.npmjs.org' node-version: ${{ matrix.node-version }} cache: 'pnpm' - - run: pnpm run ci-e2e + - run: pnpm run ci-e2e:linux # build_and_publish: # runs-on: ubuntu-latest diff --git a/e2e/package.json b/e2e/package.json index 04d1bcc..a0436a7 100755 --- a/e2e/package.json +++ b/e2e/package.json @@ -10,11 +10,19 @@ "type": "module", "scripts": { "dev": "pnpm build && vite", - "build": "vue-tsc --noEmit && vite build", + "build": "vue-tsc --noEmit && vite build && cypress install", "open": "cypress open", "tests:run": "cypress run", + "tests:run:chrome": "cypress run --browser chrome", + "tests:run:edge": "cypress run --browser edge", + "tests:run:firefox": "cypress run --browser firefox", + "tests:run:safari": "cypress run --browser safari", "tests:open": "start-server-and-test dev http-get://localhost:9080 open", - "test": "start-server-and-test dev http-get://localhost:9080 tests:run" + "test": "start-server-and-test dev http-get://localhost:9080 tests:run", + "test:chrome": "start-server-and-test dev http-get://localhost:9080 tests:run:chrome", + "test:edge": "start-server-and-test dev http-get://localhost:9080 tests:run:edge", + "test:firefox": "start-server-and-test dev http-get://localhost:9080 tests:run:firefox", + "test:safari": "start-server-and-test dev http-get://localhost:9080 tests:run:safari" }, "engines": { "node": ">=18" diff --git a/package.json b/package.json index d9934e0..ca5cf17 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,9 @@ "build-only": "vite build", "type-check": "vue-tsc --noEmit", "ci-all": "pnpm i && pnpm run --recursive build", - "ci-e2e": "pnpm i && pnpm run build && pnpm run --filter e2e build && pnpm run --filter e2e test", + "ci-e2e:linux": "pnpm i && pnpm run build && pnpm run --filter e2e build && pnpm run --filter e2e test:chrome && pnpm run --filter e2e test:firefox", + "ci-e2e:macos": "pnpm i && pnpm run build && pnpm run --filter e2e build && pnpm run --filter e2e test:chrome && pnpm run --filter e2e test:firefox && pnpm run --filter e2e test:safari", + "ci-e2e:windows": "pnpm i && pnpm run build && pnpm run --filter e2e build && pnpm run --filter e2e test:chrome && pnpm run --filter e2e test:firefox && pnpm run --filter e2e test:edge", "test": "vitest", "test:unit": "vitest --run", "test:unit:coverage": "mkdir -p coverage-unit/.tmp && vitest --run --coverage && cp -f test-util/coverage-styles.css coverage-unit/base.css",