node-install.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. jobs:
  10. install-ubuntu:
  11. runs-on: ubuntu-latest
  12. strategy:
  13. matrix:
  14. node-version: [10.x, 12.x, 13.x, 14.x]
  15. steps:
  16. - uses: actions/checkout@v2
  17. - name: Use Node.js ${{ matrix.node-version }}
  18. uses: actions/setup-node@v1
  19. with:
  20. node-version: ${{ matrix.node-version }}
  21. - run: npm install
  22. install-macos:
  23. runs-on: macos-latest
  24. strategy:
  25. matrix:
  26. node-version: [10.x, 12.x, 13.x, 14.x]
  27. steps:
  28. - uses: actions/checkout@v2
  29. - name: Use Node.js ${{ matrix.node-version }}
  30. uses: actions/setup-node@v1
  31. with:
  32. node-version: ${{ matrix.node-version }}
  33. - run: npm install
  34. install-windows:
  35. runs-on: windows-latest
  36. strategy:
  37. matrix:
  38. node-version: [10.x, 12.x, 13.x] #14.x doesn't work properly on GitHub actions
  39. steps:
  40. - uses: actions/checkout@v2
  41. - name: Use Node.js ${{ matrix.node-version }}
  42. uses: actions/setup-node@v1
  43. with:
  44. node-version: ${{ matrix.node-version }}
  45. - run: npm install