ci-app-prod.yml 2.5 KB

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