ci-app-prod.yml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. name: Node CI for app production
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - dev/7.*.x
  7. paths:
  8. - .github/mergify.yml
  9. - .github/workflows/ci-app-prod.yml
  10. - .github/workflows/reusable-app-prod.yml
  11. - .github/workflows/reusable-app-reg-suit.yml
  12. - tsconfig.base.json
  13. - turbo.json
  14. - pnpm-lock.yaml
  15. - package.json
  16. - apps/app/**
  17. - '!apps/app/docker/**'
  18. - packages/**
  19. pull_request:
  20. types: [opened, reopened, synchronize]
  21. paths:
  22. - .github/mergify.yml
  23. - .github/workflows/ci-app-prod.yml
  24. - .github/workflows/reusable-app-prod.yml
  25. - .github/workflows/reusable-app-reg-suit.yml
  26. - tsconfig.base.json
  27. - pnpm-lock.yaml
  28. - turbo.json
  29. - package.json
  30. - apps/app/**
  31. - '!apps/app/docker/**'
  32. - packages/**
  33. concurrency:
  34. group: ${{ github.workflow }}-${{ github.ref }}
  35. cancel-in-progress: true
  36. jobs:
  37. test-prod-node18:
  38. uses: weseek/growi/.github/workflows/reusable-app-prod.yml@master
  39. if: |
  40. ( github.event_name == 'push'
  41. || github.base_ref == 'master'
  42. || github.base_ref == 'dev/7.*.x'
  43. || startsWith( github.base_ref, 'release/' )
  44. || startsWith( github.head_ref, 'mergify/merge-queue/' ))
  45. with:
  46. node-version: 18.x
  47. skip-e2e-test: true
  48. secrets:
  49. SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
  50. test-prod-node20:
  51. uses: weseek/growi/.github/workflows/reusable-app-prod.yml@master
  52. if: |
  53. ( github.event_name == 'push'
  54. || github.base_ref == 'master'
  55. || github.base_ref == 'dev/7.*.x'
  56. || startsWith( github.base_ref, 'release/' )
  57. || startsWith( github.head_ref, 'mergify/merge-queue/' ))
  58. with:
  59. node-version: 20.x
  60. skip-e2e-test: ${{ contains( github.event.pull_request.labels.*.name, 'dependencies' ) }}
  61. secrets:
  62. SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
  63. # run-reg-suit-node20:
  64. # needs: [test-prod-node20]
  65. # uses: weseek/growi/.github/workflows/reusable-app-reg-suit.yml@master
  66. # if: always()
  67. # with:
  68. # node-version: 20.x
  69. # skip-reg-suit: ${{ contains( github.event.pull_request.labels.*.name, 'dependencies' ) }}
  70. # secrets:
  71. # REG_NOTIFY_GITHUB_PLUGIN_CLIENTID: ${{ secrets.REG_NOTIFY_GITHUB_PLUGIN_CLIENTID }}
  72. # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
  73. # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
  74. # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}