nodejs.yml 474 B

12345678910111213141516171819202122232425
  1. name: Node CI
  2. on: [push]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. node-version: ['14', '16']
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: Use Node.js ${{ matrix.node-version }}
  12. uses: actions/setup-node@v2
  13. with:
  14. node-version: ${{ matrix.node-version }}
  15. - name: npm install and test
  16. run: |
  17. npm ci
  18. npm run lint
  19. npm test
  20. env:
  21. CI: true