-
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
Changes from all commits
0038661
3fc9a61
2a51067
92e8933
5b7cfb4
c29cff1
9baaffa
11fcf4e
2b2f9ca
b3910ba
8ab165a
e7fc153
4241dd0
9b64a8f
48eb445
a432ef4
903bccb
52deb39
cf994b9
3c7eaec
5aab5b3
4709ff9
e579240
dad01c0
45a9ecb
3b166ea
5937751
63706c0
c8c0953
3b8f51f
77ddafb
d96f4e9
7c0058e
d4bfeec
c21e08e
287f702
ba3ede1
191050e
a05759a
49e0ba9
dadb92b
eba7dce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -1,23 +1,22 @@ | ||||||||||
name: Spring Boot Gradle Test Workflow | ||||||||||
|
||||||||||
on: [ pull_request ] | ||||||||||
|
||||||||||
on: | ||||||||||
pull_request: | ||||||||||
branches: | ||||||||||
- main | ||||||||||
jobs: | ||||||||||
build: | ||||||||||
runs-on: ubuntu-latest | ||||||||||
|
||||||||||
steps: | ||||||||||
- name: Repository checkout | ||||||||||
uses: actions/checkout@v2 | ||||||||||
|
||||||||||
- name: Setup MySQL | ||||||||||
uses: mirromutth/mysql-action@v1.1 | ||||||||||
- name: Set up MySQL | ||||||||||
uses: shogo82148/actions-setup-mysql@v1 | ||||||||||
with: | ||||||||||
mysql database: ${{secrets.TEST_DATABASE}} | ||||||||||
mysql user: ${{secrets.TEST_DB_USERNAME}} | ||||||||||
mysql password: ${{secrets.TEST_DB_PASSWORD}} | ||||||||||
# run ๋ช ๋ น์ด๋ก schema ๋ง๋๋ ๋ช ๋ น์ด ์คํ | ||||||||||
run: mysql -u ${{secrets.TEST_DB_USERNAME}} -p=${{secrets.TEST_DB_PASSWORD}} < ../.././mysql/schema.sql | ||||||||||
mysql-version: "8.0" | ||||||||||
root-password: ${{secrets.TEST_DB_PASSWORD}} | ||||||||||
user: ${{secrets.TEST_DB_USERNAME}} | ||||||||||
password: ${{secrets.TEST_DB_PASSWORD}} | ||||||||||
|
||||||||||
# java ์ค์น | ||||||||||
- name: Set up JDK 17 | ||||||||||
|
@@ -40,10 +39,10 @@ jobs: | |||||||||
- name: Grant execute permission for gradlew | ||||||||||
run: chmod +x gradlew | ||||||||||
|
||||||||||
# run ๋ช ๋ น์ด๋ก schema ๋ง๋๋ ๋ช ๋ น์ด ์คํ | ||||||||||
- name: Into Schema | ||||||||||
run: mysql -h localhost -P 3306 -u ${{secrets.TEST_DB_USERNAME}} -p${{secrets.TEST_DB_PASSWORD}} --protocol=tcp < ./mysql/schema.sql | ||||||||||
Comment on lines
+43
to
+44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ํด๋น job์์ ์คํจํ๋ค์ ์๋ง๋ ์๋์ ๊ฐ์ด ๋ฐ๊ฟ์ค์ผ ํ ๊ฒ ๊ฐ์์! stackoverflow
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. ์ค ์ด๊ฑด ์ ๊ฐ์ธ repo์์๋ ์ฑ๊ณตํ์๋๋ฐ ๋ค์ ๋ด์ผ๊ฒ ๋ค์ |
||||||||||
|
||||||||||
# ํ๋ก์ ํธ ๋น๋ | ||||||||||
- name: Build with Gradle | ||||||||||
run: ./gradlew clean build | ||||||||||
|
||||||||||
# ํ ์คํธ ์คํ | ||||||||||
- name: Run Tests | ||||||||||
run: ./gradlew test |
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
๋ ๊ด์ฐฎ๊ฒ ๋ค์!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 ์ข์ ๊ฒ ๊ฐ์ต๋๋ค!