You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.3KB

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