-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: 조회 쿼리 메서드 분리 * test: 실행 계획 생성 테스트 * feat: generateExplainDocs 테스크 구현 * feat: sql-explain-hook 구현 * test: insert/update 실행 계획 생성 테스트 * test: InsertUpdateExplainGenerator 생성 및 적용 * refactor: 캐싱 고려한 쿼리 병합 과정에서의 수정
- Loading branch information
1 parent
8472cf2
commit ffaf871
Showing
19 changed files
with
974 additions
and
148 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Sql Explain Hook | ||
|
||
on: | ||
pull_request: | ||
branches: ["main"] | ||
workflow_dispatch: | ||
|
||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
|
||
jobs: | ||
sql-explain-hook: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: "17" | ||
distribution: "temurin" | ||
|
||
- name: Jooq Code Generation | ||
run: | | ||
./gradlew --info jooqCodegenAll | ||
- name: Generate Explain Docs | ||
run: | | ||
./gradlew --info api-repo:generateExplainDocs | ||
- name: Zip Explain Docs | ||
run: | | ||
mv ./api-repo/src/test/resources/explain ./explain | ||
zip explain-docs.zip ./explain/* | ||
- name: Upload Explain Docs | ||
run: | | ||
curl \ | ||
-F 'payload_json={"username": "GitHubAction", "content": "Check the PR here: [PR #${{ github.event.pull_request.number }}](https://github.com/YAPP-Github/24th-Web-Team-1-BE/pull/${{ github.event.pull_request.number }})"}' \ | ||
-F "[email protected]" \ | ||
$DISCORD_WEBHOOK |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.