node-install.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
  2. # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
  3. name: Node.js Install Test
  4. on:
  5. pull_request:
  6. release:
  7. types:
  8. - created
  9. env:
  10. CI: true
  11. jobs:
  12. install-ubuntu:
  13. runs-on: ubuntu-latest
  14. strategy:
  15. matrix:
  16. node-version: [10.x, 12.x, 14.x]
  17. steps:
  18. - uses: actions/checkout@v2
  19. - name: Use Node.js ${{ matrix.node-version }}
  20. uses: actions/setup-node@v1
  21. with:
  22. node-version: ${{ matrix.node-version }}
  23. - run: npm ci
  24. install-macos:
  25. runs-on: macos-latest
  26. strategy:
  27. matrix:
  28. node-version: [10.x, 12.x, 14.x]
  29. steps:
  30. - uses: actions/checkout@v2
  31. - name: Use Node.js ${{ matrix.node-version }}
  32. uses: actions/setup-node@v1
  33. with:
  34. node-version: ${{ matrix.node-version }}
  35. - run: npm ci
  36. install-windows:
  37. runs-on: windows-latest
  38. strategy:
  39. matrix:
  40. node-version: [10.x, 12.x, 14.x]
  41. steps:
  42. - uses: actions/checkout@v2
  43. - name: Use Node.js ${{ matrix.node-version }}
  44. uses: actions/setup-node@v1
  45. with:
  46. node-version: ${{ matrix.node-version }}
  47. - run: npm ci