ci.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: JavaScript Obfuscator CI
  2. on:
  3. push:
  4. branches: [master]
  5. pull_request:
  6. branches: [master]
  7. schedule:
  8. - cron: '0 1 * * *'
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. strategy:
  13. fail-fast: false
  14. matrix:
  15. include:
  16. - os: ubuntu-latest,
  17. node-version: 12.x
  18. - os: ubuntu-latest,
  19. node-version: 14.x
  20. - os: ubuntu-latest,
  21. node-version: 15.x
  22. - os: ubuntu-latest,
  23. node-version: 16.x
  24. - os: windows-latest,
  25. node-version: 14.x
  26. - os: windows-latest,
  27. node-version: 15.x
  28. - os: windows-latest,
  29. node-version: 16.x
  30. steps:
  31. - uses: actions/checkout@v2
  32. - uses: styfle/[email protected]
  33. with:
  34. access_token: ${{ github.token }}
  35. - name: Use Node.js ${{ matrix.node-version }}
  36. uses: actions/setup-node@v1
  37. with:
  38. node-version: ${{ matrix.node-version }}
  39. - uses: actions/cache@v2
  40. with:
  41. path: '**/node_modules'
  42. key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
  43. - run: yarn install
  44. - run: yarn run eslint
  45. - run: yarn run test
  46. - run: yarn run test:mocha-coverage:report
  47. - name: Coveralls
  48. uses: coverallsapp/github-action@master
  49. with:
  50. github-token: ${{ secrets.GITHUB_TOKEN }}
  51. path-to-lcov: './coverage/lcov.info'