Bump @playwright/test from 1.52.0 to 1.56.1 in /docs #235
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Playwright Tests | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| test: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: 📦 Install dependencies | |
| run: | | |
| cd docs | |
| npm ci | |
| - name: 🔨 Build Docusaurus | |
| run: | | |
| cd docs | |
| npm run build | |
| env: | |
| CI: true | |
| - name: 🔄️ Start Docusaurus server | |
| run: | | |
| cd docs | |
| npm run serve & | |
| env: | |
| NODE_ENV: development | |
| - name: 🕑 Wait | |
| run: sleep 5 | |
| - name: 💻 Install Playwright Browsers | |
| run: | | |
| cd docs | |
| npx playwright install --with-deps | |
| - name: 🏃♂️➡️ Run Playwright tests | |
| run: | | |
| cd docs | |
| npx playwright test | |
| env: | |
| NODE_ENV: development | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report | |
| path: docs/playwright-report/ | |
| retention-days: 30 |