nodejs.yml 856 B

123456789101112131415161718192021222324252627282930313233
  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. - uses: actions/checkout@v2
  21. - name: Use Node.js ${{ matrix.node-version }}
  22. uses: actions/setup-node@v1
  23. with:
  24. node-version: ${{ matrix.node-version }}
  25. - run: npm i -g npminstall && npminstall
  26. - run: npm run ci
  27. env:
  28. CI: true