Skip to content

Commit

Permalink
add firefox to e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nruffing committed Jan 3, 2024
1 parent eca1f78 commit c5ad7f5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
12 changes: 10 additions & 2 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c5ad7f5

Please sign in to comment.