ci.yml 658 B

123456789101112131415161718192021222324252627282930
  1. name: Tests
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. node-version: [16.x, 18.x, 20.x]
  9. fail-fast: false
  10. steps:
  11. - uses: actions/checkout@v3
  12. - name: Use Node.js ${{ matrix.node-version }}
  13. uses: actions/setup-node@v3
  14. with:
  15. node-version: ${{ matrix.node-version }}
  16. - name: Install Dependencies
  17. run: npm install
  18. - name: Lint
  19. if: matrix.node-version == '20.x'
  20. run: |
  21. npx standard
  22. - name: Test
  23. run: |
  24. npm test