Skip to content

Commit

Permalink
try out GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Jan 26, 2024
1 parent 8119af2 commit 45b1e76
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 23 deletions.
14 changes: 9 additions & 5 deletions .github/actions/checkoutAndInstallLibs.steps.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
steps:
- run: npm install --legacy-peer-deps
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
name: 'install deps'
description: 'install deps'
runs:
using: 'composite'
steps:
- run: npm install --legacy-peer-deps
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
20 changes: 12 additions & 8 deletions .github/actions/checkoutAndInstallLibs.web.steps.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- run: npm install --legacy-peer-deps
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
name: 'install php and deps'
description: 'install php and deps'
runs:
using: 'composite'
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- run: npm install --legacy-peer-deps
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
24 changes: 14 additions & 10 deletions .github/actions/playwright.steps.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
steps:
- name: npm install
run: |
npm install --legacy-peer-deps
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
- name: Install browsers and deps
run: npx playwright install && npx playwright install-deps
- name: start a server
run: "php -S 127.0.0.1:8000 -t test/data/app &"
name: 'playwright steps'
description: 'install deps and start test server'
runs:
using: 'composite'
steps:
- name: npm install
run: |
npm install --legacy-peer-deps
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
- name: Install browsers and deps
run: npx playwright install && npx playwright install-deps
- name: start a server
run: "php -S 127.0.0.1:8000 -t test/data/app &"

0 comments on commit 45b1e76

Please sign in to comment.