Skip to content

Commit

Permalink
🐛 pass in the env var to dev server and add xvfb
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Cory authored and Will Cory committed Sep 10, 2023
1 parent 7043496 commit ea15d45
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
uses: ./.github/actions/setup

- name: Run Playwright
run: pnpm i && npx playwright install && pnpm nx affected --target=e2e
run: pnpm i && npx playwright install && pnpm nx affected --target=e2e:ci
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
VITE_RPC_URL_1: ${{ secrets.RPC_URL_MAINNET }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
1 change: 1 addition & 0 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"scripts": {
"clean": "rm -rf node_modules && rm -rf artifacts && rm -rf dist && rm -rf cache",
"e2e": "playwright test",
"e2e:ci": "xvfb-run playwright test --headed",
"format": "rome format . --write",
"format:check": "rome format .",
"preinstall": "npx only-allow pnpm",
Expand Down
2 changes: 1 addition & 1 deletion e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const config: PlaywrightTestConfig = {
}
},
webServer: {
command: 'pnpm nx dev @evmts/example-vite',
command: `VITE_RPC_URL_1=${process.env.VITE_RPC_URL_1} pnpm nx dev @evmts/example-vite`,
port: 5173,
reuseExistingServer: true,
timeout: 180000,
Expand Down

0 comments on commit ea15d45

Please sign in to comment.