nodejs.yml 474 B

123456789101112131415161718192021222324
  1. name: Node CI
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. node-version: [10.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 lint
  16. run: |
  17. npm install
  18. npm run build --if-present
  19. npm run lint --if-present