nodejs.yml 1.0 KB

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