Skip to content
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

Closed
wants to merge 42 commits into from
Closed
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
0038661
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ •
shoeone96 Dec 21, 2023
3fc9a61
fix: yaml ํŒŒ์ผ ์ˆ˜์ • 2
shoeone96 Dec 21, 2023
2a51067
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 3
shoeone96 Dec 21, 2023
92e8933
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 4
shoeone96 Dec 21, 2023
5b7cfb4
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 4
shoeone96 Dec 21, 2023
c29cff1
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 5
shoeone96 Dec 21, 2023
9baaffa
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 6
shoeone96 Dec 21, 2023
11fcf4e
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 7
shoeone96 Dec 21, 2023
2b2f9ca
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 8
shoeone96 Dec 21, 2023
b3910ba
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 9
shoeone96 Dec 21, 2023
8ab165a
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 10
shoeone96 Dec 21, 2023
e7fc153
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 11
shoeone96 Dec 21, 2023
4241dd0
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 12
shoeone96 Dec 21, 2023
9b64a8f
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 13
shoeone96 Dec 21, 2023
48eb445
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 14
shoeone96 Dec 21, 2023
a432ef4
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 14
shoeone96 Dec 21, 2023
903bccb
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 15
shoeone96 Dec 21, 2023
52deb39
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 16
shoeone96 Dec 21, 2023
cf994b9
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 17
shoeone96 Dec 21, 2023
3c7eaec
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 18
shoeone96 Dec 21, 2023
5aab5b3
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 19
shoeone96 Dec 21, 2023
4709ff9
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 20
shoeone96 Dec 21, 2023
e579240
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 21
shoeone96 Dec 21, 2023
dad01c0
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 22
shoeone96 Dec 21, 2023
45a9ecb
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 23
shoeone96 Dec 21, 2023
3b166ea
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 24
shoeone96 Dec 21, 2023
5937751
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 25
shoeone96 Dec 21, 2023
63706c0
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 26
shoeone96 Dec 21, 2023
c8c0953
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 27
shoeone96 Dec 21, 2023
3b8f51f
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 28
shoeone96 Dec 21, 2023
77ddafb
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 29
shoeone96 Dec 21, 2023
d96f4e9
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 30
shoeone96 Dec 21, 2023
7c0058e
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 31
shoeone96 Dec 21, 2023
d4bfeec
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 32
shoeone96 Dec 21, 2023
c21e08e
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 33
shoeone96 Dec 21, 2023
287f702
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 34
shoeone96 Dec 21, 2023
ba3ede1
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 35
shoeone96 Dec 21, 2023
191050e
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 36
shoeone96 Dec 21, 2023
a05759a
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 37
shoeone96 Dec 21, 2023
49e0ba9
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 38
shoeone96 Dec 21, 2023
dadb92b
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 39
shoeone96 Dec 21, 2023
eba7dce
fix: ci yaml ํŒŒ์ผ ์ˆ˜์ • 40
shoeone96 Dec 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Expand All @@ -40,10 +39,10 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

# run ๋ช…๋ น์–ด๋กœ schema ๋งŒ๋“œ๋Š” ๋ช…๋ น์–ด ์‹คํ–‰
- name: Into Schema
Copy link
Collaborator

@ASak1104 ASak1104 Dec 21, 2023

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 ๋„ ๊ดœ์ฐฎ๊ฒ ๋„ค์š”!

Suggested change
- name: Into Schema
- name: Execute DDL script

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ•ด๋‹น job์—์„œ ์‹คํŒจํ•˜๋„ค์š” ์•„๋งˆ๋„ ์•„๋ž˜์™€ ๊ฐ™์ด ๋ฐ”๊ฟ”์ค˜์•ผ ํ•  ๊ฒƒ ๊ฐ™์•„์š”! stackoverflow

Suggested change
- 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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์š” ๋ถ€๋ถ„์€ ์ด๋”ฐ๊ฐ€ ํšŒ์˜ ์‹œ๊ฐ„์— ์ด์•ผ๊ธฐ ๋‚˜๋ˆ ๋ณด๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™๊ตฐ์š”!!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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
Loading