compatibility.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: Node compatibility
  2. on:
  3. schedule:
  4. - cron: "23 3 * * 1"
  5. workflow_dispatch:
  6. concurrency:
  7. group: ${{ github.workflow }}-${{ github.ref }}
  8. cancel-in-progress: true
  9. permissions:
  10. contents: read
  11. jobs:
  12. compatibility:
  13. name: compatibility (${{ matrix.os }}, ${{ matrix.node }})
  14. runs-on: ${{ matrix.os }}
  15. timeout-minutes: 15
  16. strategy:
  17. fail-fast: false
  18. matrix:
  19. # Windows validation is temporarily paused until its checks are reliable.
  20. os: [ubuntu-latest, macos-latest]
  21. node: ["22.19.0", "24.2.0", "25", "26"]
  22. include:
  23. - os: ubuntu-latest
  24. node: "22.19.0"
  25. profile: full
  26. steps:
  27. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
  28. - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
  29. - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
  30. with:
  31. node-version: ${{ matrix.node }}
  32. cache: pnpm
  33. - run: pnpm install --frozen-lockfile
  34. - run: pnpm verify --profile ${{ matrix.profile || 'platform' }}
  35. env:
  36. MCODE_VERIFY_REPORT_DIR: ${{ runner.temp }}/verification
  37. - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
  38. if: ${{ always() }}
  39. timeout-minutes: 2
  40. with:
  41. name: compatibility-${{ matrix.os }}-node-${{ matrix.node }}-${{ github.run_attempt }}
  42. path: ${{ runner.temp }}/verification/
  43. retention-days: 7