Apply dark mode in code listing in docs #171
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 | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: # manually | |
| jobs: | |
| test: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| container: | |
| image: mcr.microsoft.com/playwright:v1.58.0-noble | |
| options: --user 1001 | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - uses: actions/setup-node@v6.3.0 | |
| with: | |
| node-version: lts/* | |
| - uses: pnpm/action-setup@v5.0.0 | |
| name: Install pnpm | |
| with: | |
| version: latest | |
| run_install: false | |
| - name: Install dependencies | |
| run: pnpm install -r --ignore-scripts | |
| - name: Run Playwright tests | |
| run: npx playwright test | |
| - uses: actions/upload-artifact@v7.0.0 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: .playwright-report | |
| path: .playwright-report/ | |
| include-hidden-files: true | |
| retention-days: 30 |