ci-app-prod.yml 2.5 KB

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