test.yml 1007 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: Test
  2. on:
  3. push:
  4. branches: [main]
  5. pull_request:
  6. branches: [main]
  7. workflow_dispatch:
  8. permissions: {}
  9. concurrency:
  10. group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
  11. cancel-in-progress: true
  12. jobs:
  13. test:
  14. strategy:
  15. matrix:
  16. os: [ubuntu-latest]
  17. node_version: [20, 22, latest]
  18. include:
  19. - os: windows-latest
  20. node_version: 22
  21. runs-on: ${{ matrix.os }}
  22. steps:
  23. - name: Checkout
  24. uses: actions/checkout@v4
  25. - name: Install pnpm
  26. uses: pnpm/action-setup@v3
  27. - name: Set node version to ${{ matrix.node_version }}
  28. uses: actions/setup-node@v4
  29. with:
  30. node-version: ${{ matrix.node_version }}
  31. cache: pnpm
  32. - name: Install deps
  33. run: pnpm install
  34. env:
  35. PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
  36. - name: Install Playwright
  37. run: pnpm playwright install chromium
  38. - name: Check
  39. run: pnpm check