node-zero.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. name: 'Tests: node.js (0.x)'
  2. on: [pull_request, push]
  3. jobs:
  4. matrix:
  5. runs-on: ubuntu-latest
  6. outputs:
  7. stable: ${{ steps.set-matrix.outputs.requireds }}
  8. unstable: ${{ steps.set-matrix.outputs.optionals }}
  9. steps:
  10. - uses: ljharb/actions/node/matrix@main
  11. id: set-matrix
  12. with:
  13. preset: '0.x'
  14. stable:
  15. needs: [matrix]
  16. name: 'stable minors'
  17. runs-on: ubuntu-latest
  18. strategy:
  19. matrix: ${{ fromJson(needs.matrix.outputs.stable) }}
  20. steps:
  21. - uses: actions/checkout@v2
  22. - uses: ljharb/actions/node/run@main
  23. name: 'npm install && npm run tests-only'
  24. with:
  25. node-version: ${{ matrix.node-version }}
  26. command: 'tests-only'
  27. cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
  28. skip-ls-check: true
  29. unstable:
  30. needs: [matrix, stable]
  31. name: 'unstable minors'
  32. continue-on-error: true
  33. if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }}
  34. runs-on: ubuntu-latest
  35. strategy:
  36. matrix: ${{ fromJson(needs.matrix.outputs.unstable) }}
  37. steps:
  38. - uses: actions/checkout@v2
  39. - uses: ljharb/actions/node/run@main
  40. name: 'npm install && npm run tests-only'
  41. with:
  42. node-version: ${{ matrix.node-version }}
  43. command: 'tests-only'
  44. cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
  45. skip-ls-check: true
  46. node:
  47. name: 'node 0.x'
  48. needs: [stable, unstable]
  49. runs-on: ubuntu-latest
  50. steps:
  51. - run: 'echo tests completed'