chore: add @diplodoc-platform/team codewoners #420
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: PR Visual Tests | |
| on: | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| visual_tests: | |
| name: Visual Tests | |
| runs-on: ubuntu-latest | |
| container: | |
| image: mcr.microsoft.com/playwright:v1.48.2-jammy | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install latest npm (>= 11.5.1) | |
| run: | | |
| [ "$(printf '%s\n' "11.5.1" "$(npm -v)" | sort -V | head -n1)" = "11.5.1" ] || npm install -g npm@latest | |
| shell: bash | |
| - name: Install Packages | |
| run: npm ci | |
| - name: Install Demo Packages | |
| run: cd demo && npm i | |
| - name: Build Files | |
| run: npm run build | |
| - name: Install Playwright Browsers | |
| run: npx playwright install --with-deps | |
| - name: Run Visual Tests | |
| env: | |
| HOME: /root | |
| run: npm run test:playwright | |
| - name: Upload Playwright Report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-report | |
| path: ./playwright-report | |
| retention-days: 1 | |
| - name: Save PR ID | |
| if: always() | |
| run: | | |
| pr="${{ github.event.pull_request.number }}" | |
| echo $pr > ./pr-id.txt | |
| shell: bash | |
| - name: Create PR Artifact | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pr | |
| path: ./pr-id.txt |