Skip to content

Commit

Permalink
add firefox cypress run
Browse files Browse the repository at this point in the history
  • Loading branch information
kwinto committed Jul 9, 2024
1 parent aa6bca5 commit be36184
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/cypress-firefox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: E2E Firefox
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
- run: npm ci
- run: npm run cypress:run:firefox
10 changes: 2 additions & 8 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
name: Run Cypress
name: E2E Chrome
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 20.x
cache: "npm"
- run: npm ci
- run: npm test


6 changes: 0 additions & 6 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@ import { defineConfig } from "cypress";

export default defineConfig({
video: false,
chromeWebSecurity: false,
viewportHeight: 800,
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require("./cypress/plugins/index.js")(on, config);
},
baseUrl: "http://localhost:8787/",
},
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"cypress:open": "cypress open --e2e --browser chrome",
"cypress:serve": "http-server -a localhost -p 8787 dist/",
"cypress:run": "cypress run",
"cypress:run:firefox": "cypress run --browser firefox",
"test:cypress": "run-p -r cypress:serve cypress:run",
"test": "npm run test:cypress",
"pretest": "npm run build",
Expand Down

0 comments on commit be36184

Please sign in to comment.