ci.yml 716 B

1234567891011121314151617181920212223242526272829303132
  1. name: CI
  2. on:
  3. - push
  4. - pull_request
  5. jobs:
  6. test:
  7. name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
  8. runs-on: ${{ matrix.os }}
  9. strategy:
  10. fail-fast: false
  11. matrix:
  12. node-version:
  13. - 14
  14. - 16
  15. - 18
  16. - 20
  17. os:
  18. - ubuntu-latest
  19. env:
  20. API_KEY: 123abc
  21. OAUTH2_ACCESS_TOKEN: fake
  22. steps:
  23. - uses: actions/checkout@v2
  24. - uses: actions/setup-node@v2
  25. with:
  26. node-version: ${{ matrix.node-version }}
  27. - run: npm install
  28. - run: npm test
  29. - uses: codecov/codecov-action@v2
  30. with:
  31. fail_ci_if_error: true
  32. verbose: true