-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4fc0aa4
commit 4b73b84
Showing
3 changed files
with
36 additions
and
18 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -18,22 +18,44 @@ jobs: | |
- name: Install dependencies | ||
uses: ./.github/common-actions/install | ||
|
||
- name: Install Playwright Browsers | ||
working-directory: ./apps/e2e | ||
run: pnpm exec playwright install --with-deps | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@8f1998e9878d786675189ef566a2e4bf24869773 # [email protected] | ||
|
||
- name: Build Playwright Cache | ||
working-directory: ./apps/e2e | ||
run: pnpm build:cache:headless | ||
- name: Install Playwright dependencies | ||
run: pnpm dlx [email protected] install-deps | ||
|
||
- name: Run Playwright tests | ||
run: pnpm test:e2e:ci | ||
# For now, we only need Chromium. | ||
- name: Install browsers for Playwright | ||
run: pnpm dlx [email protected] install chromium | ||
|
||
- name: Install linux dependencies | ||
run: | | ||
sudo apt-get install --no-install-recommends -y \ | ||
xvfb | ||
- name: Serve MetaMask Test Dapp | ||
run: | | ||
pnpm run serve:test-dapp & | ||
- name: Build cache | ||
env: | ||
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }} | ||
# SEED_PHRASE: ${{ secrets.SEED_PHRASE }} | ||
# WALLET_PASSWORD: ${{ secrets.WALLET_PASSWORD }} | ||
SEED_PHRASE: 'test test test test test test test test test test test junk' | ||
WALLET_PASSWORD: 'SynpressIsAwesomeNow!!!' | ||
run: | | ||
xvfb-run pnpm build:e2e:cache | ||
- name: Run E2E tests (headful) | ||
env: | ||
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }} | ||
# SECRET_WORDS: ${{ secrets.SECRET_WORDS }} | ||
# SEED_PHRASE: ${{ secrets.SEED_PHRASE }} | ||
# WALLET_PASSWORD: ${{ secrets.WALLET_PASSWORD }} | ||
SECRET_WORDS: 'test test test test test test test test test test test junk' | ||
SEED_PHRASE: 'test test test test test test test test test test test junk' | ||
WALLET_PASSWORD: 'SynpressIsAwesomeNow!!!' | ||
run: | | ||
xvfb-run pnpm test:e2e:ci | ||
- name: Archive e2e artifacts | ||
uses: actions/upload-artifact@v4 | ||
|
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,2 @@ | ||
SECRET_WORDS='test test test test test test test test test test test junk' | ||
NETWORK_NAME=bob | ||
RPC_URL="https://l2-fluffy-bob-7mjgi9pmtg.t.conduit.xyz" | ||
CHAIN_ID=901 | ||
SYMBOL=ETH | ||
IS_TESTNET=true | ||
BLOCK_EXPLORER="https://explorerl2-fluffy-bob-7mjgi9pmtg.t.conduit.xyz" | ||
SEED_PHRASE='test test test test test test test test test test test junk' | ||
WALLET_PASSWORD='SynpressIsAwesomeNow!!!' |
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