Skip to content

Commit

Permalink
chore: improve playwright in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Jun 19, 2023
1 parent 2c80514 commit a915474
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,24 @@ jobs:
uses: pnpm/action-setup@v2
with:
version: 8.6.2
- name: Run Playwright
- name: Get installed Playwright version
id: playwright-version
working-directory: pwa
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./pnpm-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV
- name: Cache playwright binaries
uses: actions/cache@v3
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
restore-keys: ${{ runner.os }}-playwright-
- name: Install Playwright dependencies
working-directory: pwa
run: |
pnpm playwright install
pnpm exec playwright test --workers 1
pnpm playwright install --with-deps
pnpm playwright install-deps
- name: Run Playwright
working-directory: pwa
run: pnpm exec playwright test
- name: Doctrine Schema Validator
run: docker compose exec -T php bin/console doctrine:schema:validate
- name: Psalm
Expand Down

0 comments on commit a915474

Please sign in to comment.