ci.yml 915 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: ci
  2. on: [push, pull_request]
  3. jobs:
  4. legacy:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. node-version: ['0.10', '0.12', 4.x, 6.x, 8.x]
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: Use Node.js
  12. uses: actions/setup-node@v1
  13. with:
  14. node-version: ${{ matrix.node-version }}
  15. - name: Install
  16. run: |
  17. npm install --production && npm install tape
  18. - name: Run tests
  19. run: |
  20. npm run legacy
  21. test:
  22. runs-on: ubuntu-latest
  23. strategy:
  24. matrix:
  25. node-version: [10.x, 12.x, 13.x, 14.x, 15.x, 16.x]
  26. steps:
  27. - uses: actions/checkout@v2
  28. - name: Use Node.js
  29. uses: actions/setup-node@v1
  30. with:
  31. node-version: ${{ matrix.node-version }}
  32. - name: Install
  33. run: |
  34. npm install
  35. - name: Run tests
  36. run: |
  37. npm run test