ci.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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: 13.x
  20. - os: ubuntu-latest,
  21. node-version: 14.x
  22. - os: ubuntu-latest,
  23. node-version: 15.x
  24. - os: windows-latest,
  25. node-version: 14.x
  26. - os: windows-latest,
  27. node-version: 15.x
  28. steps:
  29. - uses: actions/checkout@v2
  30. - uses: styfle/[email protected]
  31. with:
  32. access_token: ${{ github.token }}
  33. - name: Use Node.js ${{ matrix.node-version }}
  34. uses: actions/setup-node@v1
  35. with:
  36. node-version: ${{ matrix.node-version }}
  37. - uses: actions/cache@v2
  38. with:
  39. path: '**/node_modules'
  40. key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
  41. - run: yarn install
  42. - run: yarn run eslint
  43. - run: yarn run test
  44. - run: yarn run test:mocha-coverage:report
  45. - name: Coveralls
  46. uses: coverallsapp/github-action@master
  47. with:
  48. github-token: ${{ secrets.GITHUB_TOKEN }}
  49. path-to-lcov: './coverage/lcov.info'