Skip to content

Commit

Permalink
Make sure playwright npm package is installed before pulling browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
MuchQuak committed Feb 10, 2025
1 parent 5f0c8ee commit be5ff50
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 14 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,17 @@ jobs:
- name: Execute tests (Unit and Feature tests) via PHPUnit/Pest
run: docker exec symbiota-laravel-web-1 php artisan test

- name: Install Playwright Npm Package
run: docker exec symbiota-laravel-web-1 npm install -D

- name: Install Playwright Browsers
run: docker exec symbiota-laravel-web-1 npx playwright install
run: docker exec symbiota-laravel-web-1 npx playwright install --with-deps

- name: Run Playwright Tests
run: docker exec symbiota-laravel-web-1 npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "vite build"
},
"devDependencies": {
"@playwright/test": "^1.47.2",
"@playwright/test": "^1.50.1",
"@types/node": "^22.7.1",
"autoprefixer": "^10.4.19",
"axios": "^1.1.2",
Expand Down

0 comments on commit be5ff50

Please sign in to comment.