node.js.yml 636 B

123456789101112131415161718192021222324
  1. # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
  2. # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
  3. name: tests
  4. on: [push, pull_request]
  5. jobs:
  6. build:
  7. runs-on: ubuntu-latest
  8. strategy:
  9. matrix:
  10. node-version: [14.x, 16.x, 18.x]
  11. steps:
  12. - uses: actions/checkout@v3
  13. - name: Use Node.js ${{ matrix.node-version }}
  14. uses: actions/setup-node@v3
  15. with:
  16. node-version: ${{ matrix.node-version }}
  17. - run: npm ci
  18. - run: npm test