build.yml 633 B

123456789101112131415161718192021222324252627282930
  1. name: build
  2. on:
  3. pull_request:
  4. paths-ignore:
  5. - "**.md"
  6. push:
  7. branches:
  8. - master
  9. paths-ignore:
  10. - "**.md"
  11. jobs:
  12. build-test:
  13. runs-on: ubuntu-latest
  14. strategy:
  15. matrix:
  16. node: ["10", "12", "14", "15"]
  17. steps:
  18. - uses: actions/checkout@v2
  19. - name: Setup node ${{ matrix.node }}
  20. uses: actions/setup-node@v2
  21. with:
  22. node-version: ${{ matrix.node }}
  23. - run: yarn install
  24. - run: yarn run test
  25. - run: yarn run coverage
  26. - uses: coverallsapp/github-action@master
  27. with:
  28. github-token: ${{ secrets.GITHUB_TOKEN }}