node.js.yml 1.5 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 CI
  4. on:
  5. push:
  6. branches: [ master, vscode-ext]
  7. paths: [ 'extension/**']
  8. pull_request:
  9. branches: [ master ]
  10. paths: [ 'extension/**']
  11. jobs:
  12. job_1:
  13. name: Plugin
  14. runs-on: macos-latest
  15. strategy:
  16. matrix:
  17. node-version: [10.x, 12.x, 14.x]
  18. steps:
  19. - uses: actions/checkout@v2
  20. - name: Use Node.js ${{ matrix.node-version }}
  21. uses: actions/setup-node@v1
  22. with:
  23. node-version: ${{ matrix.node-version }}
  24. - run: |
  25. npm ci
  26. npm run build --if-present
  27. npm run lint
  28. npm test
  29. working-directory: ./extension/code-editor-integration
  30. job_2:
  31. name: Vscode Ext
  32. runs-on: macos-latest
  33. strategy:
  34. matrix:
  35. node-version: [10.x, 12.x, 14.x]
  36. steps:
  37. - uses: actions/checkout@v2
  38. - name: Use Node.js ${{ matrix.node-version }}
  39. uses: actions/setup-node@v1
  40. with:
  41. node-version: ${{ matrix.node-version }}
  42. - run: |
  43. npm ci
  44. npm run build --if-present
  45. npm run precompile
  46. npm run lint
  47. npm test
  48. working-directory: ./extension/vscode-howdoi