Skip to content

Commit d85ad0a

Browse files
committed
♻️ 병합 문제 해결
2 parents 0a9f78f + e49596c commit d85ad0a

File tree

120 files changed

+1211
-4238
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+1211
-4238
lines changed

.github/ISSUE_TMEPLATE/bug.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Bug
3+
about: 버그 발생
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## 📌 개요
11+
- 버그를 간단하게 적어주세요.
12+
13+
## 📚 레퍼런스 (또는 새로 알게 된 내용) 혹은 궁금한 사항들
14+
- 참고할 사항이 있다면 적어주세요.

.github/ISSUE_TMEPLATE/feature.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Feature
3+
about: 기능 추가
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## 📌 개요
11+
- 할 일을 간단하게 적어주세요.
12+
13+
## 📚 레퍼런스 (또는 새로 알게 된 내용) 혹은 궁금한 사항들
14+
- 참고할 사항이 있다면 적어주세요.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## 💡 개요
2+
3+
## 📃 작업내용
4+
5+
## 🔀 변경사항
6+
7+
## 🙋‍♂️ 질문사항
8+
9+
## 🍴 사용방법
10+
11+
## 🎸 기타

.github/workflows/jusicool_cd.yml

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
name: Jusicool CD
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
branches:
8+
- master
9+
10+
jobs:
11+
flutter_test:
12+
name: Run flutter test and analyze
13+
runs-on: macos-latest
14+
steps:
15+
16+
- name: Checkout Flutter repository
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Java
20+
uses: actions/setup-java@v3.12.0
21+
with:
22+
distribution: 'oracle'
23+
java-version: '17'
24+
25+
- name: Setup Flutter
26+
uses: subosito/flutter-action@v2
27+
with:
28+
channel: 'stable'
29+
30+
- name: Checking Flutter Version
31+
run: flutter --version
32+
33+
- name: Create .env from Secret
34+
run: |
35+
echo "BASEURL=${{ secrets.BASEURL }}" >> .env
36+
37+
- name: Install Dependencies
38+
run: flutter pub get
39+
40+
- name: Analyze project source
41+
run: flutter analyze
42+
43+
- name: Build Test IOS
44+
run: flutter build ios --release --no-codesign
45+
46+
47+
- name: Set timestamp
48+
id: timestamp
49+
run: echo "TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_ENV
50+
51+
- name: Notify Success for Release
52+
if: success()
53+
env:
54+
TIMESTAMP: ${{ env.TIMESTAMP }}
55+
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
56+
run: |
57+
DATA=$(cat <<EOF
58+
{
59+
"embeds": [
60+
{
61+
"title": "배포 성공 :)",
62+
"description": "** Release Version **\n> \`${{ github.event.release.tag_name }}\`\n",
63+
"color": 46335,
64+
"timestamp": "${{ env.TIMESTAMP }}",
65+
"url": "${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }}",
66+
"author": {
67+
"name": "${{ github.event.sender.login }}",
68+
"url": "${{ github.event.sender.html_url }}",
69+
"icon_url": "${{ github.event.sender.avatar_url }}"
70+
},
71+
"thumbnail": {
72+
"url": "${{ github.event.sender.avatar_url }}"
73+
},
74+
"fields": [
75+
{
76+
"name": "Repository",
77+
"value": "> [${{ github.repository }}](https://github.com/${{ github.repository }})\n"
78+
},
79+
{
80+
"name": "Tag",
81+
"value": "> [${{ github.event.release.tag_name }}](https://github.com/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }})",
82+
"inline": false
83+
},
84+
{
85+
"name": "Workflow",
86+
"value": "> [CI](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})",
87+
"inline": false
88+
}
89+
]
90+
}
91+
]
92+
}
93+
EOF
94+
)
95+
curl -X POST -H 'Content-type:application/json' -d "$DATA" "${{ secrets.DISCORD_WEBHOOK_URL }}"
96+
97+
- name: Notify Failure
98+
if: failure()
99+
env:
100+
TIMESTAMP: ${{ env.TIMESTAMP }}
101+
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
102+
run: |
103+
DATA=$(cat <<EOF
104+
{
105+
"embeds": [
106+
{
107+
"title": "배포 실패 :(",
108+
"description": "** Release Version **\n> \`${{ github.event.release.tag_name }}\`\n",
109+
"color": 16711680,
110+
"timestamp": "${{ env.TIMESTAMP }}",
111+
"url": "${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }}",
112+
"author": {
113+
"name": "${{ github.event.sender.login }}",
114+
"url": "${{ github.event.sender.html_url }}"
115+
},
116+
"thumbnail": {
117+
"url": "${{ github.event.sender.avatar_url }}"
118+
},
119+
"fields": [
120+
{
121+
"name": "Repository",
122+
"value": "> [${{ github.repository }}](https://github.com/${{ github.repository }})\n"
123+
},
124+
{
125+
"name": "Tag",
126+
"value": "> [${{ github.event.release.tag_name }}](https://github.com/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }})",
127+
"inline": false
128+
},
129+
{
130+
"name": "Workflow",
131+
"value": "> [CI](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})",
132+
"inline": false
133+
}
134+
]
135+
}
136+
]
137+
}
138+
EOF
139+
)
140+
curl -X POST -H 'Content-type:application/json' -d "$DATA" "${{ secrets.DISCORD_WEBHOOK_URL }}"

.github/workflows/jusicool_ci.yml

Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
name: Jusicool CI
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
pull_request:
8+
9+
jobs:
10+
flutter_test:
11+
name: Run flutter test and analyze
12+
runs-on: macos-latest
13+
steps:
14+
15+
- name: Checkout Flutter repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Java
19+
uses: actions/setup-java@v3.12.0
20+
with:
21+
distribution: 'oracle'
22+
java-version: '17'
23+
24+
- name: Setup Flutter
25+
uses: subosito/flutter-action@v2
26+
with:
27+
channel: 'stable'
28+
29+
- name: Checking Flutter Version
30+
run: flutter --version
31+
32+
- name: Create .env from Secret
33+
run: |
34+
echo "BASEURL=${{ secrets.BASEURL }}" >> .env
35+
36+
- name: Install Dependencies
37+
run: flutter pub get
38+
39+
- name: Analyze project source
40+
run: flutter analyze
41+
42+
- name: Build Test IOS
43+
run: flutter build ios --release --no-codesign
44+
45+
- name: Set timestamp
46+
id: timestamp
47+
run: echo "TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_ENV
48+
49+
- name: Notify Success for Push
50+
if: github.event_name == 'push' && success()
51+
env:
52+
TIMESTAMP: ${{ env.TIMESTAMP }}
53+
SUCCESS_FLUTTER_IMAGE: ${{ secrets.SUCCESS_FLUTTER_IMAGE }}
54+
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
55+
run: |
56+
DATA=$(cat <<EOF
57+
{
58+
"content": "<@749992025985777755>, <@1055126447246823518>, <@1075320294446731326>",
59+
"embeds": [
60+
{
61+
"title": "CI 성공 :)",
62+
"description": "** COMMIT MESSAGE **\n> [${{ github.event.head_commit.message }}](${{ github.event.head_commit.url }})\n",
63+
"color": 46335,
64+
"timestamp": "${{ env.TIMESTAMP }}",
65+
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
66+
"author": {
67+
"name": "${{ github.event.sender.login }}",
68+
"url": "${{ github.event.sender.html_url }}",
69+
"icon_url": "${{ github.event.sender.avatar_url }}"
70+
},
71+
"thumbnail": {
72+
"url": "${{ github.event.sender.avatar_url }}"
73+
},
74+
"fields": [
75+
{
76+
"name": "Repository",
77+
"value": "> [${{ github.repository }}](https://github.com/${{ github.repository }})\n"
78+
},
79+
{
80+
"name": "Branch",
81+
"value": "> [${{ github.ref }}](https://github.com/${{ github.repository }}/tree/${{ github.ref_name }})",
82+
"inline": false
83+
},
84+
{
85+
"name": "Workflow",
86+
"value": "> [CI](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})",
87+
"inline": false
88+
}
89+
]
90+
}
91+
]
92+
}
93+
EOF
94+
)
95+
curl -X POST -H 'Content-type:application/json' -d "$DATA" "${{ secrets.DISCORD_WEBHOOK_URL }}"
96+
97+
- name: Notify Success for PR
98+
if: github.event_name == 'pull_request' && success()
99+
env:
100+
TIMESTAMP: ${{ env.TIMESTAMP }}
101+
SUCCESS_FLUTTER_IMAGE: ${{ secrets.SUCCESS_FLUTTER_IMAGE }}
102+
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
103+
run: |
104+
DATA=$(cat <<EOF
105+
{
106+
"content": "<@749992025985777755>, <@1055126447246823518>, <@1075320294446731326>",
107+
"embeds": [
108+
{
109+
"title": "CI 성공 :)",
110+
"description": "** Pull Request **\n> [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})\n",
111+
"color": 46335,
112+
"timestamp": "${{ env.TIMESTAMP }}",
113+
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
114+
"author": {
115+
"name": "${{ github.event.sender.login }}",
116+
"url": "${{ github.event.sender.html_url }}"
117+
},
118+
"thumbnail": {
119+
"url": "${{ github.event.sender.avatar_url }}"
120+
},
121+
"fields": [
122+
{
123+
"name": "Repository",
124+
"value": "> [${{ github.repository }}](https://github.com/${{ github.repository }})\n"
125+
},
126+
{
127+
"name": "Branch",
128+
"value": "> [${{ github.ref }}](https://github.com/${{ github.repository }}/tree/${{ github.ref_name }})",
129+
"inline": false
130+
},
131+
{
132+
"name": "Workflow",
133+
"value": "> [CI](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})",
134+
"inline": false
135+
}
136+
]
137+
}
138+
]
139+
}
140+
EOF
141+
)
142+
curl -X POST -H 'Content-type:application/json' -d "$DATA" "${{ secrets.DISCORD_WEBHOOK_URL }}"
143+
144+
- name: Notify Failure
145+
if: failure()
146+
env:
147+
TIMESTAMP: ${{ env.TIMESTAMP }}
148+
FAIL_FLUTTER_IMAGE: ${{ secrets.FAIL_FLUTTER_IMAGE }}
149+
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
150+
run: |
151+
DATA=$(cat <<EOF
152+
{
153+
"content": "<@749992025985777755>, <@1055126447246823518>, <@1075320294446731326>",
154+
"embeds": [
155+
{
156+
"title": "CI 실패 :(",
157+
"description": "** ${{
158+
github.event_name == 'push'
159+
&& 'COMMIT MESSAGE' || 'Pull Request' }} **\n> [${{
160+
github.event_name == 'push'
161+
&& github.event.head_commit.message ||
162+
github.event.pull_request.title }}](${{
163+
github.event_name == 'push'
164+
&& github.event.head_commit.url ||
165+
github.event.pull_request.html_url }})\n",
166+
"color": 16711680,
167+
"timestamp": "${{ env.TIMESTAMP }}",
168+
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
169+
"author": {
170+
"name": "${{ github.event.sender.login }}",
171+
"url": "${{ github.event.sender.html_url }}"
172+
},
173+
"thumbnail": {
174+
"url": "${{ github.event.sender.avatar_url }}"
175+
},
176+
"fields": [
177+
{
178+
"name": "Repository",
179+
"value": "> [${{ github.repository }}](https://github.com/${{ github.repository }})\n"
180+
},
181+
{
182+
"name": "Branch",
183+
"value": "> [${{ github.ref }}](https://github.com/${{ github.repository }}/tree/${{ github.ref_name }})",
184+
"inline": false
185+
},
186+
{
187+
"name": "Workflow",
188+
"value": "> [CI](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})",
189+
"inline": false
190+
}
191+
]
192+
}
193+
]
194+
}
195+
EOF
196+
)
197+
curl -X POST -H 'Content-type:application/json' -d "$DATA" "${{ secrets.DISCORD_WEBHOOK_URL }}"

0 commit comments

Comments
 (0)