nodejs.yml 800 B

12345678910111213141516171819202122232425262728293031
  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 ]
  7. pull_request:
  8. branches: [ master ]
  9. jobs:
  10. build:
  11. runs-on: ${{ matrix.os }}
  12. strategy:
  13. matrix:
  14. node-version: [10.x]
  15. os: [ubuntu-latest, windows-latest, macos-latest]
  16. steps:
  17. - uses: actions/checkout@v2
  18. - name: Use Node.js ${{ matrix.node-version }}
  19. uses: actions/setup-node@v1
  20. with:
  21. node-version: ${{ matrix.node-version }}
  22. - run: npm i -g npminstall && npminstall
  23. - run: npm run ci
  24. env:
  25. CI: true