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