25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.5KB

  1. name: Verify changes
  2. on: [push, pull_request]
  3. jobs:
  4. lint:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v2
  8. - name: Setup Node.js
  9. uses: actions/setup-node@v1
  10. with:
  11. node-version: 14.x
  12. - run: npm install
  13. - run: npm run test-lint
  14. tests:
  15. runs-on: ubuntu-latest
  16. strategy:
  17. matrix:
  18. node-version: [10.x, 12.x, 14.x, 15.x]
  19. steps:
  20. - uses: actions/checkout@v2
  21. with:
  22. submodules: recursive
  23. - name: Setup Node.js
  24. uses: actions/setup-node@v1
  25. with:
  26. node-version: ${{ matrix.node-version }}
  27. - name: npm install and test
  28. run: |
  29. npm install
  30. npm run test-unit
  31. tests-on-legacy:
  32. runs-on: ubuntu-latest
  33. strategy:
  34. matrix:
  35. node-version: [0.10.x, 0.12.x, 4.x, 6.x, 8.x]
  36. steps:
  37. - uses: actions/checkout@v2
  38. with:
  39. submodules: recursive
  40. - name: Setup Node.js
  41. uses: actions/setup-node@v1
  42. with:
  43. node-version: ${{ matrix.node-version }}
  44. - name: npm install and test
  45. run: |
  46. npm install mocha@3 chai@3
  47. npm run test-unit
  48. build-output-sync:
  49. runs-on: ubuntu-latest
  50. steps:
  51. - uses: actions/checkout@v1
  52. - name: Setup Node.js
  53. uses: actions/setup-node@v1
  54. with:
  55. node-version: 12.x
  56. - name: Install, build and check git diff
  57. run: |
  58. npm ci
  59. npm run build
  60. git diff --quiet HEAD --