nodejs.yml 892 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: Node CI
  2. on:
  3. pull_request:
  4. types: [opened, synchronize]
  5. jobs:
  6. build:
  7. runs-on: ubuntu-latest
  8. strategy:
  9. matrix:
  10. node-version: [12.x]
  11. steps:
  12. - uses: actions/checkout@v1
  13. - name: Use Node.js ${{ matrix.node-version }}
  14. uses: actions/setup-node@v1
  15. with:
  16. node-version: ${{ matrix.node-version }}
  17. - name: npm install
  18. run: |
  19. npm install
  20. npm install -g jshint
  21. npm install git+https://github.com/ecomfe/zrender.git
  22. - name: build zrender
  23. run: |
  24. cd node_modules/zrender
  25. npm install
  26. npm run prepublish
  27. cd ../..
  28. - name: jshint
  29. run: |
  30. jshint
  31. - name: build release
  32. run: |
  33. npm run release
  34. env:
  35. CI: true
  36. - name: unit test
  37. run: |
  38. npm run test