diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 4876359f..48a004f5 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -46,21 +46,8 @@ jobs: - name: Run Laravel Server run: php artisan serve > /dev/null 2>&1 & - - name: Get installed Playwright version - id: playwright-version - run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV - - name: Cache playwright binaries - uses: actions/cache@v3 - id: playwright-cache - with: - path: | - ~/.cache/ms-playwright - key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} - - run: npm ci - - run: npx playwright install --with-deps - if: steps.playwright-cache.outputs.cache-hit != 'true' - - run: npx playwright install-deps - if: steps.playwright-cache.outputs.cache-hit != 'true' + - name: Install Playwright Browsers + run: npx playwright install --with-deps - name: Run Playwright tests run: npx playwright test