node_pull_request.yml 491 B

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