node.js.yml 730 B

123456789101112131415161718192021222324252627
  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: Node.js CI
  4. on:
  5. push:
  6. pull_request:
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. matrix:
  12. node-version: [14.x, 16.x]
  13. # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
  14. steps:
  15. - uses: actions/checkout@v3
  16. - name: Use Node.js ${{ matrix.node-version }}
  17. uses: actions/setup-node@v3
  18. with:
  19. node-version: ${{ matrix.node-version }}
  20. - run: npm ci
  21. - run: npm run ci