forked from Synthetixio/synpress
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to CI/CD to use Agoric chain and Offer up DApp (#4)
* feat(ci): Included ui/ and contract/ from offer-up-dapp (with changes) * feat(ci): Updated CI to use agoric chain + offer up dapp * fix(ci): updated scripts in package.json * refactor(ci): Moved ui/ and contract/ to tools/ * refactor: moved json-server-db.json to tools folder
- Loading branch information
1 parent
f35b3fe
commit fcbd07f
Showing
14 changed files
with
6,989 additions
and
2,501 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
name: E2E (debug) | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [master, dev] | ||
on: [push, pull_request] | ||
|
||
concurrency: | ||
group: | ||
|
@@ -13,9 +10,6 @@ concurrency: | |
|
||
jobs: | ||
e2e: | ||
if: | ||
github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || | ||
github.event_name == 'pull_request' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -24,6 +18,8 @@ jobs: | |
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # [email protected] | ||
with: | ||
version: 8.15.3 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # [email protected] | ||
|
@@ -32,9 +28,7 @@ jobs: | |
|
||
- name: Run anvil | ||
run: | | ||
docker-compose -f docker-compose.ci.yml --profile foundry up --build --detach | ||
env: | ||
ANVIL_FORK_URL: ${{ secrets.ANVIL_FORK_URL }} | ||
docker-compose -f docker-compose.yml --profile synpress up --build --detach | ||
- name: Set pnpm cache directory | ||
run: pnpm config set store-dir .pnpm-store | ||
|
@@ -79,7 +73,7 @@ jobs: | |
echo -n "======> remote noVNC URL: " | ||
sleep 5 | ||
curl -s localhost:4040/api/tunnels | jq -r .tunnels[0].public_url | ||
pnpm test:e2e:anvil | ||
pnpm test:e2e:keplr | ||
env: | ||
NGROK_AUTH: ${{ secrets.NGROK_AUTH }} | ||
NGROK_BASIC_AUTH: ${{ secrets.NGROK_BASIC_AUTH }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"name": "@synthetixio/synpress", | ||
"version": "3.7.2-beta.9", | ||
"packageManager": "[email protected]", | ||
"description": "Synpress is e2e testing framework based around Cypress.io & playwright with included MetaMask support. Test your dapps with ease.", | ||
"keywords": [ | ||
"Synpress", | ||
|
@@ -41,16 +40,20 @@ | |
"release:patch": "release-it patch --disable-metrics", | ||
"update:deps": "ncu -u -x 'node-fetch' && pnpm install", | ||
"start:server": "serve node_modules/@metamask/test-dapp/dist -p 3000", | ||
"start:contract": "cd tools/contract && pnpm start", | ||
"start:ui": "cd tools/ui && pnpm dev", | ||
"start:json-server": "json-server tools/json-server-db.json --port 3004", | ||
"synpress:run:metamask": "EXTENSION=metamask SKIP_EXTENSION_SETUP=true SYNPRESS_LOCAL_TEST=true node synpress.js run --configFile=synpress.config.js", | ||
"test:e2e:metamask": "start-server-and-test 'turbo start:server' http-get://localhost:3000 'pnpm synpress:run:metamask'", | ||
"test:e2e:metamask": "start-server-and-test 'pnpm start:server' http-get://localhost:3000 'pnpm synpress:run:metamask'", | ||
"test:e2e:anvil": "start-server-and-test 'turbo start:server' http-get://localhost:3000 'CYPRESS_USE_ANVIL=true pnpm synpress:run'", | ||
"test:e2e:headless": "start-server-and-test 'turbo start:server' http-get://localhost:3000 'pnpm synpress:run --headless'", | ||
"test:e2e:headless:anvil": "start-server-and-test 'turbo start:server' http-get://localhost:3000 'CYPRESS_USE_ANVIL=true pnpm synpress:run --headless'", | ||
"test:e2e:ci": "start-server-and-test 'turbo start:server' http-get://localhost:3000 'pnpm synpress:run --record --group'", | ||
"test:e2e:ci": "start-server-and-test 'VITE_LOCAL_ENV=agoric_chain pnpm start:ui' http-get://localhost:3000 'pnpm start:json-server' http-get://localhost:3004 'pnpm synpress:run --record --group'", | ||
"test:e2e:ci:anvil": "start-server-and-test 'turbo start:server' http-get://localhost:3000 'CYPRESS_USE_ANVIL=true pnpm synpress:run --record --group'", | ||
"test:e2e:ci:cypress-action": "CYPRESS_USE_ANVIL=true pnpm synpress:run", | ||
"synpress:run:keplr": "EXTENSION=keplr SKIP_EXTENSION_SETUP=true SYNPRESS_LOCAL_TEST=true node synpress.js run --configFile=synpress.config.js", | ||
"test:e2e:keplr": "start-server-and-test 'turbo start:server' http-get://localhost:3000 'pnpm synpress:run:keplr'" | ||
"test:e2e:keplr": "start-server-and-test 'pnpm start:ui' http-get://localhost:3000 'pnpm start:json-server' http-get://localhost:3004 'pnpm synpress:run:keplr'" | ||
|
||
}, | ||
"dependencies": { | ||
"@cypress/code-coverage": "^3.11.0", | ||
|
@@ -103,6 +106,7 @@ | |
"eslint-plugin-testing-library": "^6.0.0", | ||
"eslint-plugin-ui-testing": "^2.0.1", | ||
"eslint-plugin-unicorn": "^48.0.1", | ||
"json-server": "1.0.0-alpha.23", | ||
"npm-check-updates": "^16.12.2", | ||
"prettier": "^3.0.2", | ||
"release-it": "^16.1.5", | ||
|
@@ -114,7 +118,10 @@ | |
"gh-pages": "5.0.0", | ||
"http-cache-semantics": "4.1.1", | ||
"ansi-regex": "5.0.1", | ||
"@testing-library/dom": "8.20.0" | ||
"@testing-library/dom": "8.20.0", | ||
"ses": "1.3.0", | ||
"@endo/eventual-send": "0.17.2", | ||
"@agoric/xsnap": "0.14.3-u13.0" | ||
}, | ||
"engines": { | ||
"node": ">=14" | ||
|
Oops, something went wrong.