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.

node.yml 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. npm ci
  23. npm run build --if-present
  24. - name: Check webpack build changes
  25. run: |
  26. bash -c "[[ ! \"`git status --porcelain `\" ]] || ( echo 'Uncommited changes in webpack build' && git status && exit 1 )"
  27. env:
  28. CI: true
  29. test:
  30. runs-on: ubuntu-latest
  31. strategy:
  32. matrix:
  33. node-version: [12.x]
  34. steps:
  35. - uses: actions/checkout@v2
  36. - name: Use node ${{ matrix.node-version }}
  37. uses: actions/setup-node@v1
  38. with:
  39. node-version: ${{ matrix.node-version }}
  40. - name: Install dependencies
  41. run: |
  42. npm ci
  43. - name: Test
  44. run: npm run test
  45. handlebars:
  46. runs-on: ubuntu-latest
  47. strategy:
  48. matrix:
  49. node-version: [12.x]
  50. steps:
  51. - uses: actions/checkout@v2
  52. - name: Use node ${{ matrix.node-version }}
  53. uses: actions/setup-node@v1
  54. with:
  55. node-version: ${{ matrix.node-version }}
  56. - name: Install dependencies
  57. run: |
  58. npm ci
  59. - name: Run compile
  60. run: ./build/compile-handlebars-templates.sh