Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
slavastartsev committed Nov 22, 2024
1 parent 4fc0aa4 commit 4b73b84
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 18 deletions.
42 changes: 32 additions & 10 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 2 additions & 7 deletions apps/e2e/.env.example
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!!!'
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"start:evm": "pnpm run --filter bob-evm dev --port 5050",
"start:bob-pay": "pnpm run --filter bob-pay dev --port 5050",
"test:e2e": "pnpm start:evm && pnpm run --filter bob-e2e test:playwright:headful",
"test:e2e:ci": "pnpm run --filter bob-e2e test:playwright:headless",
"test:e2e:ci": "pnpm run --filter bob-e2e test:playwright:headful",
"build:e2e:cache": "pnpm run --filter bob-e2e build:cache",
"postinstall": "husky install",
"clean": "pnpm turbo:clean && pnpm clean:node-modules && pnpm clean:lock && pnpm install",
"clean:node-modules": "rimraf ./packages/**/**/node_modules && rimraf ./apps/**/node_modules && rm -rf ./node_modules",
Expand Down

0 comments on commit 4b73b84

Please sign in to comment.