Skip to content

Commit

Permalink
Run tests on bundled local server
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn committed Dec 5, 2023
1 parent a74e1e0 commit d0d2f8e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@ jobs:
with:
working-directory: centrifuge-app
install-command: yarn
start: yarn start
wait-on: 'http://localhost:3000'
build: |
yarn
yarn build:fabric
yarn build:centjs
yarn build:centReact
cat .env-config/.env.development
yarn build:app --mode development
start: yarn preview
wait-on: 'http://localhost:4173'
command: yarn e2e:run:ci
browser: chrome
config-file: synpress.config.js
config-file: synpress.config.ts
ci-build-id: '${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }}'
env:
# pass the Cypress Cloud record key as an environment variable
Expand Down
6 changes: 3 additions & 3 deletions centrifuge-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start:fabric": "cd ../fabric && yarn start && cd ../centrifuge-app",
"start:centjs": "cd ../centrifuge-js && yarn start && cd ../centrifuge-app",
"start:centReact": "cd ../centrifuge-react && yarn start && cd ../centrifuge-app",
"build": "yarn build:fabric && yarn build:centjs && yarn build:types && yarn build:centReact && yarn build:app",
"build": "yarn build:fabric && yarn build:centjs && yarn build:centReact && yarn build:types && yarn build:app",
"build:app": "vite build",
"build:types": "tsc",
"build:fabric": "cd ../fabric && yarn build && cd ../centrifuge-app",
Expand All @@ -21,9 +21,9 @@
"coverage": "vitest run --coverage",
"test:ci": "vitest run",
"preview": "vite preview",
"e2e:run": "synpress run -cf synpress.config.js",
"e2e:run": "synpress run -cf synpress.config.ts",
"e2e:run:ci": "cross-env PRIVATE_KEY=a32b8805bc1f3ea6324614891e29f64578c76b27beaf24cbc5694753f638ad79 NETWORK_NAME=centrifuge RPC_URL=https://fullnode.development.cntrfg.com CHAIN_ID=2000 SYMBOL=DEVEL IS_TESTNET=true DEBUG=true synpress run --record -cf synpress.config.ts",
"e2e:open": "synpress open -cf synpress.config.js"
"e2e:open": "synpress open -cf synpress.config.ts"
},
"dependencies": {
"@centrifuge/centrifuge-js": "workspace:*",
Expand Down

0 comments on commit d0d2f8e

Please sign in to comment.