ci-app-prod.yml 2.3 KB

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