Skip to content

Commit d0d5020

Browse files
committed
finalize the cypress commands.
1 parent cd858c3 commit d0d5020

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

.github/workflows/build-test-lint.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ jobs:
2222
with:
2323
platforms: 'linux/amd64'
2424
webTarget: web
25-
# TODO(alishaevn): figure out how to get the below passing in github actions
26-
# it may be different than our typical setups since we don't use docker locally
2725
cypress:
2826
runs-on: ubuntu-22.04
2927
steps:
@@ -34,10 +32,6 @@ jobs:
3432
with:
3533
start: yarn start
3634
wait-on: 'http://localhost:3000'
37-
- name: Cypress component
38-
uses: cypress-io/github-action@v6
39-
with:
40-
component: true
4135
eslint:
4236
needs: build
4337
uses: scientist-softserv/actions/.github/workflows/[email protected]

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,16 @@
66
"node": "^18.13.0"
77
},
88
"scripts": {
9-
"dev": "next dev",
109
"build": "next build",
11-
"start": "next build && next start",
10+
"cypress:e2e": "start-server-and-test dev http://localhost:3000 \"cypress open --e2e --browser electron\"",
11+
"cypress:headless:e2e": "start-server-and-test dev http://localhost:3000 \"cypress run --e2e --browser electron\"",
12+
"dev": "next dev",
1213
"lint": "next lint --dir pages --dir utils",
1314
"lint:fix": "next lint --dir pages --dir utils --fix",
14-
"cypress:open:component": "cypress open --component",
15-
"cypress:open:e2e": "start-server-and-test dev http://localhost:3000 \"cypress open\"",
16-
"cypress:run:component": "cypress run --component",
17-
"cypress:run:e2e": "start-server-and-test dev http://localhost:3000 \"cypress run\"",
1815
"jest": "jest",
1916
"jest-watch": "jest --watch",
20-
"release": "release-it"
17+
"release": "release-it",
18+
"start": "next build && next start"
2119
},
2220
"dependencies": {
2321
"@rjsf/core": "^5.0.0-beta.17",

0 commit comments

Comments
 (0)