-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
๐ Feature Github Action์ ์ด์ฉํด PullRequest ์ ์๋ build ๋ฐ test๋ฅผ ์งํํ๋ CI pipeline ๊ตฌ์ถ #21
Conversation
schema directory ์์
mysql ์ฐ๊ฒฐ ์ localhost ์ถ๊ฐ
mysql ์์ฑ ์๊ฐ ๋ถ์ฌ ํ init ์์ ํ ์ ์๊ฒ step ์์น ๋ณ๊ฒฝ
pull reque ์ ์๋ํ๋ branch ๋ณ๊ฒฝ
sql ์ ์๊ณผ์ ์์ ์ด๋๊ฐ ์ ํํ ๋ฌธ์ ์ธ์ง ์๊ธฐ ์ํด ์คํ ์คํฌ๋ฆฝํธ ๋ถ๋ฆฌ
ddl create ๋ก build์ test ๋๋์ง ์ ๊ฒ
file ์์ ํ ์ฌ์๋
ํฌํธ ๋ฒํธ ์ถ๊ฐ
์ธ์ฆ ๋ฌธ์ ์ธ์ง ์ฌํ์ธ
์ปจํ ์ด๋ ์ํ ํ์ธ
docker ์ ์ ๋ก์ง ์ถ๊ฐ
docker ๋ฅผ ์ฌ์ฉํ์ง ์์ ์์ sql ๋ก ๊ตฌ๋
์ ์ host ์ถ๊ฐ
ํฌํธ ๋ฒํธ ์ถ๊ฐ
ํฌํธ ๋ฐ host ์ญ์
mysql ๊ณ์ ์์
mysql ์ ์ ๋ช ๋ น์ด ์์
mysql ์ปจํ ์ด๋ ๋๊ธฐ ์๊ฐ ๊ณ ๋ ค step ์์ ๋ณ๊ฒฝ
mysql ์ ์ host ๋ณ๊ฒฝ
mysql ์ ์ ๊ถํ ์ถ๊ฐ
protocoal ์ ๋ณด ์ถ๊ฐ
ํ์ธํ์ต๋๋ค! ๋๋ฌด...๋๋ฌด... ๊ณ ์ํ์ จ์ต๋๋ค...๐๐ฅฒ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํ์ผ ๋ช ์ sync ๋ฅผ ์ถ๊ฐํ ์ด์ ๊ฐ ์์๊น์?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ๋ง ๊ณ ์ํ์
จ์ต๋๋ค ๐ฅบ
์ค๋ฅ ๋ถ๋ถ๋ง ์์ ํ๊ณ ๋ค์ด๋ฐ๋ง ์ ๊น ๋
ผ์ํ๋ฉด mergeํด๋ ๋ ๊ฒ ๊ฐ์ต๋๋ค!
- name: Into Schema | ||
run: mysql -h localhost -P 3306 -u ${{secrets.TEST_DB_USERNAME}} -p${{secrets.TEST_DB_PASSWORD}} --protocol=tcp < ./mysql/schema.sql |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํด๋น job์์ ์คํจํ๋ค์ ์๋ง๋ ์๋์ ๊ฐ์ด ๋ฐ๊ฟ์ค์ผ ํ ๊ฒ ๊ฐ์์! stackoverflow
- name: Into Schema | |
run: mysql -h localhost -P 3306 -u ${{secrets.TEST_DB_USERNAME}} -p${{secrets.TEST_DB_PASSWORD}} --protocol=tcp < ./mysql/schema.sql | |
- name: Into Schema | |
run: mysql -h 127.0.0.1 -P 3306 -u ${{secrets.TEST_DB_USERNAME}} -p${{secrets.TEST_DB_PASSWORD}} --protocol=tcp < ./mysql/schema.sql |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ๋ถ๋ถ์ ์ด๋ฐ๊ฐ ํ์ ์๊ฐ์ ์ด์ผ๊ธฐ ๋๋ ๋ณด๋ฉด ์ข์ ๊ฒ ๊ฐ๊ตฐ์!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ค ์ด๊ฑด ์ ๊ฐ์ธ repo์์๋ ์ฑ๊ณตํ์๋๋ฐ ๋ค์ ๋ด์ผ๊ฒ ๋ค์
@@ -40,10 +39,10 @@ jobs: | |||
- name: Grant execute permission for gradlew | |||
run: chmod +x gradlew | |||
|
|||
# run ๋ช ๋ น์ด๋ก schema ๋ง๋๋ ๋ช ๋ น์ด ์คํ | |||
- name: Into Schema |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Into Schema
๋ผ๋ ์ด๋ฆ์ด ์ถ์์ ์ธ ๋๋์ด ๋ค๊ธฐ๋ ํ๋ค์ Execute DDL script
๋ ์ด๋จ๊น์?
Create schema
๋ ๊ด์ฐฎ๊ฒ ๋ค์!
- name: Into Schema | |
- name: Execute DDL script |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create schema ์ข์ ๊ฒ ๊ฐ์ต๋๋ค!
ํ์ฌ secret ์ ์ฉ ๋ฌธ์ ๋ก ์ผ์์ ์ผ๋ก close ํฉ๋๋ค. |
โ ์๊ตฌ์ฌํญ
๐ ์ฃผ์ ๋ณ๊ฒฝ์ฌํญ
๐ก ๊ธฐํ์ฌํญ