25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

55 satır
1.5 KiB

4 yıl önce
  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. with:
  24. node-version: ${{ matrix.node-version }}
  25. command: 'tests-only'
  26. cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
  27. unstable:
  28. needs: [matrix, stable]
  29. name: 'unstable minors'
  30. continue-on-error: true
  31. if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }}
  32. runs-on: ubuntu-latest
  33. strategy:
  34. matrix: ${{ fromJson(needs.matrix.outputs.unstable) }}
  35. steps:
  36. - uses: actions/checkout@v2
  37. - uses: ljharb/actions/node/run@main
  38. with:
  39. node-version: ${{ matrix.node-version }}
  40. command: 'tests-only'
  41. cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
  42. node:
  43. name: 'node 0.x'
  44. needs: [stable, unstable]
  45. runs-on: ubuntu-latest
  46. steps:
  47. - run: 'echo tests completed'