ci-app-prod.yml 2.3 KB

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