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

143 infra 프론트엔드 cicd 셋팅 #144

Merged
merged 12 commits into from
Jul 21, 2023
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/🌱-백엔드-feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: "\U0001F331 백엔드 Feature"
about: "\U0001F331 백엔드 Feature"
title: "[✨ feat] "
labels: "\U0001F331 backend, ✨ feat"
assignees: ''

---

## ✨작성할 기능에 대한 설명을 적어주세요
```
```

<br><br>

## ✅ 해야 할 작업들을 작성해주세요
- [ ]

<br><br>

## 🦋 연관된 이슈
-
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/🍔-프론트엔드-feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: "\U0001F354 프론트엔드 Feature"
about: "\U0001F354 프론트엔드 Feature"
title: "[✨ feat] "
labels: "✨ feat, \U0001F354 frontend"
assignees: ''

---

## ✨작성할 기능에 대한 설명을 적어주세요
```
```

<br><br>

## 🌄 기능에 대한 사진을 첨부해주세요

<br><br>


## ✅ 해야 할 작업들을 작성해주세요
- [ ]

<br><br>

## 🦋 연관된 이슈
-
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/🐞-bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: "\U0001F41E Bug"
about: "\U0001F41E Bug"
title: "[\U0001F41E bug] "
labels: "\U0001F41E bug"
assignees: ''

---

## 🐞 무슨 버그인가요?
```

```

<br><br>

## 🧐 재현하는 법
1.

<br><br>

## 😎 예상 동작
```

```

<br><br>

## 🌄 관련 사진


<br><br>


## 🦋 추가적인 내용
```

```

<br><br>
10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## ✨ 요약
```
```

<br><br>

## 😎 해결한 이슈
- close

<br><br>
33 changes: 33 additions & 0 deletions .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 🍔 Celuveat Frontend CI 🍔

on:
push:
branches: [ "develop-frontend" ]
pull_request:
branches: [ "develop-frontend" ]

jobs:
frontend-test:
runs-on: ubuntu-latest
env:
working-directory: ./frontend

name: 🍔테스트 딱 대라 💢👊

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.16.1'

- name: 🍔 yarn install
run: yarn install
working-directory: ${{ env.working-directory }}

- name: 🍔 eslint 테스트
run: yarn lint
working-directory: ${{ env.working-directory }}

- name: 🍔 React 프로젝트 빌드
run: yarn build
working-directory: ${{ env.working-directory }}
23 changes: 23 additions & 0 deletions .github/workflows/frontend-dev-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 🍔 Celuveat frontend DEV CD 🍔

on:
push:
branches:
- develop-fronted
paths:
- 'frontend/**'

jobs:
deploy-backend:
runs-on: self-hosted

steps:
- name: 🍔 .env 파일 세팅
run: |
touch ~/frontend-env/.env
echo KAKAO_MAP_API_KEY=${{ secrets.KAKAO_MAP_API_KEY }} >> ~/frontend-env/.env

- name: 🍔 Run Frontend Deploy Script
run: |
cd ~
sudo sh deploy-frontend.sh
2 changes: 1 addition & 1 deletion frontend/src/utils/formatDateToKorean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const formatDateToKorean = (isoDateString: string) => {
const year = date.getFullYear();
const month = date.getMonth() + 1;
const day = date.getDate();

const formattedDate = `${year}년 ${month}월 ${day}일`;
return formattedDate;
};
Expand Down
Loading