Chore: DB 기존 SQL 삭제 및 RDS 스키마 반영 #293 #549
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: CI Pipeline | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| check-changes: | |
| name: 변경 사항 확인 | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| outputs: | |
| should-run: ${{ steps.changes.outputs.src }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v2 | |
| id: changes | |
| with: | |
| filters: | | |
| src: | |
| - 'src/**' | |
| - 'build.gradle' | |
| jooq: | |
| name: jOOQ 세팅 | |
| needs: check-changes | |
| uses: ./.github/workflows/jooq.yml | |
| permissions: | |
| contents: read | |
| test: | |
| name: 테스트 워크플로우 | |
| needs: jooq | |
| # if: needs.check-changes.outputs.should-run == 'true' | |
| uses: ./.github/workflows/test.yml | |
| secrets: inherit | |
| permissions: | |
| contents: write | |
| checks: write | |
| pull-requests: write | |
| actions: read | |
| build: | |
| name: 빌드 워크플로우 | |
| needs: test | |
| # if: needs.check-changes.outputs.should-run == 'true' && (github.event_name == 'push') # 빌드는 푸시 이벤트에서만 실행 | |
| if: github.event_name == 'push' # main 테스트용 | |
| uses: ./.github/workflows/build.yml | |
| secrets: inherit | |
| permissions: | |
| contents: read | |
| packages: write | |
| with: | |
| registry: ${{ vars.REGISTRY || 'ghcr.io' }} | |
| image_name: ${{ vars.IMAGE_NAME || github.repository }} | |
| notify: | |
| name: CI 결과 알림 | |
| # if: needs.check-changes.outputs.should-run == 'true' | |
| needs: [test, build] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: 알림 전송 | |
| uses: ./.github/actions/send-notification | |
| with: | |
| workflow-type: 'ci' | |
| status: ${{ (needs.test.result == 'success' && (github.event_name == 'pull_request' || needs.build.result == 'success')) && 'success' || 'failure' }} | |
| details: | | |
| { | |
| "test_result": "${{ needs.test.result || 'skipped' }}", | |
| "build_result": "${{ needs.build.result || 'skipped' }}", | |
| "trigger_type": "${{ github.event_name }}" | |
| } | |
| webhook-url: ${{ secrets.ACTIONS_WEBHOOK_URL }} |