ci.yml 1.3 KB

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