build.yml 582 B

12345678910111213141516171819202122232425262728
  1. name: build
  2. on:
  3. push:
  4. branches: [master]
  5. pull_request:
  6. branches: ["*"]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. matrix:
  12. node-version: [10.x, 12.x, 14.x]
  13. steps:
  14. - uses: actions/checkout@v2
  15. - name: Use Node.js ${{ matrix.node-version }}
  16. uses: actions/setup-node@v1
  17. with:
  18. node-version: ${{ matrix.node-version }}
  19. - run: npm install
  20. - run: npm test
  21. - name: Coveralls
  22. uses: coverallsapp/github-action@master
  23. with:
  24. github-token: ${{ secrets.GITHUB_TOKEN }}