Skip to content

Commit

Permalink
chore: use npm run script to run e2e tests on ci
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Nov 3, 2021
1 parent 2c2d5f9 commit 1915e79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/audit_and_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
CYPRESS_CACHE_FOLDER: ${{ github.workspace }}/node_modules/.cache/Cypress

- name: Run e2e tests
run: npm run test:e2e -- --group smoke-tests --record
run: npm run test:e2e:ci
env:
SKIP_METAMASK_SETUP: ${{ secrets.SKIP_METAMASK_SETUP }}
CYPRESS_PRIVATE_KEY_WITH_FUNDS: ${{ secrets.CYPRESS_PRIVATE_KEY_WITH_FUNDS }}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"update:deps": "ncu -u && npm install --legacy-peer-deps",
"start:server": "serve tests/test-dapp -p 3000",
"test:e2e": "start-server-and-test 'npm run start:server' http-get://localhost:3000 'node synpress.js run --configFile=tests/e2e/config.json --config='fixturesFolder=fixtures,pluginsFile=plugins/index.js,supportFile=support/index.js''"
"test:e2e:ci": "start-server-and-test 'npm run start:server' http-get://localhost:3000 'node synpress.js run --group smoke-tests --record --configFile=tests/e2e/config.json --config='fixturesFolder=fixtures,pluginsFile=plugins/index.js,supportFile=support/index.js''"
},
"dependencies": {
"@cypress/code-coverage": "3.9.10",
Expand Down

0 comments on commit 1915e79

Please sign in to comment.