2
0

nodeci-master.yml 504 B

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