ci.yml 483 B

1234567891011121314151617181920212223
  1. name: ci
  2. 'on':
  3. - push
  4. - pull_request
  5. jobs:
  6. test:
  7. name: Node ${{ matrix.node }} / ${{ matrix.os }}
  8. runs-on: ${{ matrix.os }}
  9. strategy:
  10. fail-fast: false
  11. matrix:
  12. os:
  13. - ubuntu-latest
  14. node:
  15. - '14'
  16. steps:
  17. - uses: actions/checkout@v2
  18. - uses: actions/setup-node@v2
  19. with:
  20. node-version: ${{ matrix.node }}
  21. - run: npm install
  22. - run: npm run build --if-present
  23. - run: npm test