Repository navigation
chore(deps): bump the github-actions-updates group with 2 updates (#2320) #4160
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Validation | |
| # PR 검증의 유일한 진입점이다. repository quality 가 변경 파일을 완전하게 분류한 뒤 | |
| # static analysis · unit test · screenshot · dependency review 를 reusable workflow 로 한 번씩 부른다. | |
| # 각 job check 를 ruleset 에서 직접 required 로 요구하므로 문서 전용 PR 도 같은 이름의 | |
| # check 를 만들되, 무거운 job 내부는 즉시 건너뛴다. 모든 검증 뒤 집계용 runner 는 없다. | |
| # required context 이름은 pr-gate-policy.test.mjs 에 고정해 workflow 이름 변경과 ruleset | |
| # 변경이 함께 검토되도록 한다. | |
| # | |
| # base 필터를 두지 않는다 — base 변경(feat/* → develop)은 pull_request 기본 activity | |
| # type 에 없어 재트리거되지 않으므로, 필터가 있으면 스택 PR 이 검증을 한 번도 거치지 | |
| # 않고 머지된다. | |
| on: | |
| # 본문 CI Test Plan을 바꾸면 이전 green check를 재사용하지 않고 다시 검증한다. | |
| pull_request: | |
| types: [opened, synchronize, reopened, edited] | |
| # merge queue 는 큐 ref 에서 required check 를 다시 요구한다. merge group 에는 PR 이 | |
| # 없어 pull_request_number 가 0 으로 떨어지고, develop push 가 이미 쓰는 전량 검증 | |
| # 경로를 그대로 탄다. PR 본문을 재료로 쓰는 CI Test Plan · linked Issue 게이트는 | |
| # repository-quality 안에서 pull_request_number > 0 조건으로 스스로 비활성된다. | |
| merge_group: | |
| types: [checks_requested] | |
| # GITHUB_TOKEN 으로 PR 브랜치에 baseline/stack merge commit 을 올리면 pull_request | |
| # 이벤트가 다시 발생하지 않는다. 권한 있는 bridge 가 같은 SHA 에 필수 검증을 붙일 때 쓴다. | |
| # | |
| # type: number 는 dispatch 입력의 «검증» 만 한다 — 런타임 값은 여전히 문자열이다. | |
| # 그 문자열을 아래 reusable workflow 의 number 입력에 그대로 꽂으면 워크플로가 | |
| # 시작조차 못 하고 «evaluate reusable workflow inputs ... Unexpected value '1840'» | |
| # 로 죽는다. job 이 0개라 로그도 check-run annotation 도 남지 않아 gh 로는 사유가 | |
| # 보이지 않는다. 그래서 각 with: 는 fromJSON 으로 수를 되살려 넘긴다 (#1850). | |
| workflow_dispatch: | |
| inputs: | |
| pull_request_number: | |
| description: "현재 ref 와 일치해야 하는 열린 PR 번호" | |
| required: true | |
| type: number | |
| # 같은 PR 의 옛 실행을 끊는다. head 가 갱신되면 이전 SHA 의 결과는 판단 근거가 아니다. | |
| concurrency: | |
| group: pr-validation-${{ github.event.pull_request.number || inputs.pull_request_number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| issues: read | |
| pull-requests: write | |
| jobs: | |
| repository-quality: | |
| name: Repository Quality | |
| uses: ./.github/workflows/repository-quality.yml | |
| with: | |
| pull_request_number: ${{ fromJSON(inputs.pull_request_number || '0') || github.event.pull_request.number || 0 }} | |
| static-analysis: | |
| name: Static Analysis | |
| needs: repository-quality | |
| if: ${{ !cancelled() }} | |
| uses: ./.github/workflows/lint.yml | |
| with: | |
| pull_request_number: ${{ fromJSON(inputs.pull_request_number || '0') || github.event.pull_request.number || 0 }} | |
| run_ktlint: ${{ needs.repository-quality.result != 'success' || needs.repository-quality.outputs.ktlint_required != 'false' }} | |
| ktlint_tasks: ${{ needs.repository-quality.result == 'success' && needs.repository-quality.outputs.ktlint_tasks || 'ktlintCheck :build-logic:ktlintCheck' }} | |
| run_android_lint: ${{ needs.repository-quality.result != 'success' || needs.repository-quality.outputs.android_lint_required != 'false' }} | |
| android_lint_tasks: ${{ needs.repository-quality.result == 'success' && needs.repository-quality.outputs.android_lint_tasks || 'lintDebug :app:processDebugMainManifest' }} | |
| verify_manifest: ${{ needs.repository-quality.result != 'success' || needs.repository-quality.outputs.verify_manifest != 'false' }} | |
| unit-test: | |
| name: Unit Test | |
| needs: repository-quality | |
| if: ${{ !cancelled() }} | |
| uses: ./.github/workflows/unit-test.yml | |
| with: | |
| pull_request_number: ${{ fromJSON(inputs.pull_request_number || '0') || github.event.pull_request.number || 0 }} | |
| run_validation: ${{ needs.repository-quality.result != 'success' || needs.repository-quality.outputs.unit_test_required != 'false' }} | |
| run_node_tests: ${{ needs.repository-quality.result != 'success' || needs.repository-quality.outputs.run_node_tests != 'false' }} | |
| gradle_tasks: ${{ needs.repository-quality.result == 'success' && needs.repository-quality.outputs.unit_test_tasks || ':koverXmlReportCi :koverHtmlReportCi :konsist:test :build-logic:test :app:compileDebugAndroidTestKotlin' }} | |
| coverage_modules: ${{ needs.repository-quality.result == 'success' && needs.repository-quality.outputs.coverage_modules || 'all' }} | |
| screenshot: | |
| name: Screenshot | |
| needs: repository-quality | |
| if: ${{ !cancelled() }} | |
| uses: ./.github/workflows/screenshot.yml | |
| with: | |
| pull_request_number: ${{ fromJSON(inputs.pull_request_number || '0') || github.event.pull_request.number || 0 }} | |
| run_validation: ${{ needs.repository-quality.result != 'success' || needs.repository-quality.outputs.screenshot_required != 'false' }} | |
| gradle_tasks: ${{ needs.repository-quality.result == 'success' && needs.repository-quality.outputs.screenshot_tasks || ':core:ui:validateScreenshotTest :feature:home:presentation:validateScreenshotTest :feature:receiver:presentation:validateScreenshotTest :feature:onboarding:presentation:validateScreenshotTest :feature:afternote:presentation:validateScreenshotTest :feature:mindrecord:presentation:validateScreenshotTest :feature:setting:presentation:validateScreenshotTest :feature:timeletter:presentation:validateScreenshotTest' }} | |
| screenshot_modules: ${{ needs.repository-quality.result == 'success' && needs.repository-quality.outputs.screenshot_modules || ':core:ui :feature:home:presentation :feature:receiver:presentation :feature:onboarding:presentation :feature:afternote:presentation :feature:mindrecord:presentation :feature:setting:presentation :feature:timeletter:presentation' }} | |
| dependency-review: | |
| name: Dependency Review | |
| needs: repository-quality | |
| if: ${{ !cancelled() }} | |
| uses: ./.github/workflows/dependency-review.yml | |
| with: | |
| run_review: ${{ needs.repository-quality.result != 'success' || needs.repository-quality.outputs.dependency_review_required != 'false' }} |