nodejs.yml 357 B

12345678910111213141516171819202122
  1. name: Node CI
  2. on: [push]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v1
  8. - uses: actions/setup-node@v1
  9. with:
  10. node-version: 12.x
  11. - name: npm install, build, and test
  12. run: |
  13. npm ci
  14. npm run build --if-present
  15. npm run lint
  16. npm test
  17. env:
  18. CI: true