ci.yml 509 B

123456789101112131415161718192021222324
  1. name: CI
  2. on:
  3. pull_request:
  4. push:
  5. branches: [ master ]
  6. jobs:
  7. tests-linux:
  8. runs-on: ubuntu-latest
  9. strategy:
  10. fail-fast: false
  11. matrix:
  12. node-version: [10.x, 12.x, 14.x, 16.x]
  13. steps:
  14. - uses: actions/checkout@v2
  15. - name: Use Node.js ${{ matrix.node-version }}
  16. uses: actions/setup-node@v1
  17. with:
  18. node-version: ${{ matrix.node-version }}
  19. - name: Install module
  20. run: npm install
  21. - name: Run tests
  22. run: npm test