Skip to content

Commit

Permalink
test playwright ci #3036
Browse files Browse the repository at this point in the history
  • Loading branch information
emilschn committed Sep 16, 2024
1 parent 8f4a00a commit 95e1375
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,34 +110,22 @@ jobs:
MAILER_DSN: ${{ secrets.MAILER_DSN_CI }}
MAIL_ENABLE: 1

- name: Run tests
run: |
composer require dama/doctrine-test-bundle:7.3
./vendor/bin/phpunit --stop-on-failure --testdox -d memory_limit=-1
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
env:
PLAYWRIGHT_TEST_BASE_URL: http://localhost:8080
APP_SECRET: ${{ secrets.APP_SECRET }}
DATABASE_URL: mysql://root:[email protected]:${{ job.services.mysql.ports['3306'] }}/histologe_db
ADMIN_EMAIL: [email protected]
NOTIFICATIONS_EMAIL: [email protected]
CONTACT_EMAIL: [email protected]
HISTOLOGE_URL: http://localhost:8080
SERVER_NAME: localhost:8080
MAILER_DSN: ${{ secrets.MAILER_DSN_CI }}
CRON_ENABLE: 1
MAIL_ENABLE: 1
FEATURE_ASK_VISITE_ENABLE: 1
MAINTENANCE_ENABLE: 0
CLAMAV_STRATEGY: 'clamd_network'
CLAMAV_HOST: 127.0.0.1

- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
env:
PLAYWRIGHT_TEST_BASE_URL: http://localhost:8080
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down

0 comments on commit 95e1375

Please sign in to comment.