ci-app-prod.yml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. name: Node CI for app production
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths:
  7. - .github/workflows/ci-app-prod.yml
  8. - .github/workflows/reusable-app-prod.yml
  9. - .github/workflows/reusable-app-reg-suit.yml
  10. - tsconfig.base.json
  11. - yarn.lock
  12. - packages/app/**
  13. - '!packages/app/docker/**'
  14. - packages/codemirror-textlint/**
  15. - packages/core/**
  16. - packages/preset-themes/**
  17. - packages/remark-*/**
  18. - packages/slack/**
  19. - packages/ui/**
  20. pull_request:
  21. branches:
  22. - master
  23. types: [opened, reopened, synchronize]
  24. paths:
  25. - .github/workflows/ci-app-prod.yml
  26. - .github/workflows/reusable-app-prod.yml
  27. - .github/workflows/reusable-app-reg-suit.yml
  28. - tsconfig.base.json
  29. - yarn.lock
  30. - packages/app/**
  31. - '!packages/app/docker/**'
  32. - packages/codemirror-textlint/**
  33. - packages/core/**
  34. - packages/preset-themes/**
  35. - packages/remark-*/**
  36. - packages/slack/**
  37. - packages/ui/**
  38. workflow_call:
  39. inputs:
  40. cypress-config-video:
  41. description: 'Enable video when running Cypress test'
  42. type: boolean
  43. default: false
  44. concurrency:
  45. group: ${{ github.workflow }}-${{ github.ref }}
  46. cancel-in-progress: true
  47. jobs:
  48. test-prod-node14:
  49. uses: weseek/growi/.github/workflows/reusable-app-prod.yml@master
  50. with:
  51. node-version: 14.x
  52. skip-cypress: true
  53. secrets:
  54. SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
  55. test-prod-node16:
  56. uses: weseek/growi/.github/workflows/reusable-app-prod.yml@master
  57. with:
  58. node-version: 16.x
  59. skip-cypress: ${{ contains( github.event.pull_request.labels.*.name, 'dependencies' ) }}
  60. cypress-report-artifact-name: Cypress report
  61. cypress-config-video: ${{ inputs.cypress-config-video || false }}
  62. secrets:
  63. SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
  64. run-reg-suit-node16:
  65. needs: [test-prod-node16]
  66. uses: weseek/growi/.github/workflows/reusable-app-reg-suit.yml@master
  67. if: always()
  68. with:
  69. node-version: 16.x
  70. skip-reg-suit: ${{ contains( github.event.pull_request.labels.*.name, 'dependencies' ) }}
  71. cypress-report-artifact-name: Cypress report
  72. secrets:
  73. REG_NOTIFY_GITHUB_PLUGIN_CLIENTID: ${{ secrets.REG_NOTIFY_GITHUB_PLUGIN_CLIENTID }}
  74. AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
  75. AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
  76. SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}