nodejs.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:
  7. - main
  8. - master
  9. pull_request:
  10. branches:
  11. - main
  12. - master
  13. schedule:
  14. - cron: '0 2 * * *'
  15. jobs:
  16. build:
  17. runs-on: ${{ matrix.os }}
  18. strategy:
  19. fail-fast: false
  20. matrix:
  21. node-version: [16]
  22. os: [ubuntu-latest, windows-latest, macos-latest]
  23. steps:
  24. - name: Checkout Git Source
  25. uses: actions/checkout@v2
  26. - name: Use Node.js ${{ matrix.node-version }}
  27. uses: actions/setup-node@v1
  28. with:
  29. node-version: ${{ matrix.node-version }}
  30. - name: Install Dependencies
  31. run: npm i
  32. - name: Continuous Integration
  33. run: npm run ci
  34. - name: Code Coverage
  35. uses: codecov/codecov-action@v1
  36. with:
  37. token: ${{ secrets.CODECOV_TOKEN }}