Skip to content

Commit

Permalink
fix: provide environment variables in the gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Jul 26, 2024
1 parent 8b954ec commit d70c533
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
- name: Run Playwright tests
env:
DEPLOYMENT_URL: ${{ github.event.deployment_status.target_url }}
ANVIL_FORK_URL: ${{ secrets.ANVIL_FORK_URL }}
NEXT_PUBLIC_E2E_WALLET_MNEMONIC: ${{ secrets.E2E_WALLET_MNEMONIC }}
run: npm run test
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineConfig({

webServer: [
{
command: `anvil --fork-url=${process.env.NEXT_PUBLIC_ANVIL_FORK_URL} --fork-block-number=${process.env.NEXT_PUBLIC_ANVIL_FORK_BLOCK_NUMBER} -m='${process.env.NEXT_PUBLIC_E2E_WALLET_MNEMONIC}'`,
command: `anvil --fork-url=${process.env.ANVIL_FORK_URL} --fork-block-number=6373425 -m='${process.env.NEXT_PUBLIC_E2E_WALLET_MNEMONIC}'`,
port: 8545,
},
{
Expand Down

0 comments on commit d70c533

Please sign in to comment.