ci-app-prod.yml 2.6 KB

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