web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.8 KiB

  1. name: 'Tests: node.js (harmony)'
  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. versionsAsRoot: true
  14. preset: '>= 0.4'
  15. stable:
  16. needs: [matrix]
  17. name: 'stable minors'
  18. runs-on: ubuntu-latest
  19. strategy:
  20. matrix:
  21. node-version: ${{ fromJson(needs.matrix.outputs.stable) }}
  22. steps:
  23. - uses: actions/checkout@v2
  24. - uses: ljharb/actions/node/run@main
  25. name: 'npm install && npm run test:harmony'
  26. with:
  27. node-version: ${{ matrix.node-version }}
  28. command: 'test:harmony'
  29. cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
  30. skip-ls-check: true
  31. unstable:
  32. needs: [matrix, stable]
  33. name: 'unstable minors'
  34. continue-on-error: true
  35. if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }}
  36. runs-on: ubuntu-latest
  37. strategy:
  38. matrix:
  39. node-version: ${{ fromJson(needs.matrix.outputs.unstable) }}
  40. exclude:
  41. - node-version: 0.7
  42. - node-version: 0.4
  43. steps:
  44. - uses: actions/checkout@v2
  45. - uses: ljharb/actions/node/run@main
  46. name: 'npm install && npm run test:harmony'
  47. with:
  48. node-version: ${{ matrix.node-version }}
  49. command: 'test:harmony'
  50. cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
  51. skip-ls-check: true
  52. node:
  53. name: 'node: harmony'
  54. needs: [stable, unstable]
  55. runs-on: ubuntu-latest
  56. steps:
  57. - run: 'echo tests completed'