Skip to content

Commit

Permalink
feat: add xvfb to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagalidoom committed Jun 25, 2024
1 parent cca6f9d commit 4fcf22c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dev_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@ jobs:
run: yarn update-deposits && yarn build

- name: Install Playwright Browsers
run: yarn playwright install

- name: Setup xvfb
run: |
yarn playwright install
sudo apt-get update
sudo apt-get install -y xvfb
- name: Run tests
run: yarn run-e2e-tests
run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' yarn run-e2e-tests

- name: Configure AWS Development credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/prod_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@ jobs:
- name: Install Playwright Browsers
run: yarn playwright install

- name: Setup xvfb
run: |
sudo apt-get update
sudo apt-get install -y xvfb
- name: Run tests
run: yarn run-e2e-tests
run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' yarn run-e2e-tests

- name: Configure AWS Production credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineConfig({
actionTimeout: 0,
baseURL: "http://localhost:3000",
trace: "on-first-retry",
headless: true,
headless: false,
},
projects: [
{
Expand Down
2 changes: 1 addition & 1 deletion tests/connect-wallet.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const test = baseTest.extend<{
wallet: "metamask",
version: "11.16.13",
seed: "mango choose scrap wasp hill chest process cloud float clarify worth plastic", // Seed phrase for GC Deposit UI only
headless: true,
headless: false,
});

// Add Hardhat as a custom network
Expand Down

0 comments on commit 4fcf22c

Please sign in to comment.