node.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. name: Node
  2. on:
  3. pull_request:
  4. push:
  5. branches:
  6. - master
  7. - stable*
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. strategy:
  12. matrix:
  13. node-version: [12.x]
  14. steps:
  15. - uses: actions/checkout@v2
  16. - name: Use node ${{ matrix.node-version }}
  17. uses: actions/setup-node@v1
  18. with:
  19. node-version: ${{ matrix.node-version }}
  20. - name: Install dependencies & build
  21. run: |
  22. make clean
  23. npm ci
  24. npm run build --if-present
  25. - name: Check webpack build changes
  26. run: |
  27. bash -c "[[ ! \"`git status --porcelain `\" ]] || ( echo 'Uncommited changes in webpack build' && git status && exit 1 )"
  28. env:
  29. CI: true
  30. test:
  31. runs-on: ubuntu-latest
  32. strategy:
  33. matrix:
  34. node-version: [12.x]
  35. steps:
  36. - uses: actions/checkout@v2
  37. - name: Use node ${{ matrix.node-version }}
  38. uses: actions/setup-node@v1
  39. with:
  40. node-version: ${{ matrix.node-version }}
  41. - name: Install dependencies
  42. run: |
  43. npm ci
  44. - name: Test
  45. run: npm run test
  46. handlebars:
  47. runs-on: ubuntu-latest
  48. strategy:
  49. matrix:
  50. node-version: [12.x]
  51. steps:
  52. - uses: actions/checkout@v2
  53. - name: Use node ${{ matrix.node-version }}
  54. uses: actions/setup-node@v1
  55. with:
  56. node-version: ${{ matrix.node-version }}
  57. - name: Install dependencies
  58. run: |
  59. npm ci
  60. - name: Run compile
  61. run: ./build/compile-handlebars-templates.sh