-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Feat] CI용 git actions 추가 #311
Conversation
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.
고생하셨습니다!! 배포 시간이 20%나 줄고 yarn berry를 쓸 수 있어서 좋네요 ㅎㅎ 👍
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.
build를 이렇게 테스트 할 수 있다니... 하나 배워갑니다!! 👍
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout |
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.
궁금한 게 대소문자는 상관 없나요?! 🤔
ex) Checkout 과 checkout
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.
각 step의 이름입니다! 저희가 임의로 정할수 있더라구요ㅎㅎ
job(작업 정의)> step(작업을 단계별로 쪼개기) > name1, name2... 이런식으로 작동합니다!
https://github.com/Team-E2I4/Team-E2I4-TiKiTaza-FE/actions/runs/8505681422/job/23294583847?pr=311
링크 들어가보시면 파일 내 적혀있는 단계별 name이 그대로 반영된 걸 확인하실 수 있습니다!
📋 Issue Number
close #312
💻 구현 내용
main
브랜치에 push시 자동배포하는 git actions를 추가하였습니다. 세부단계는 아래와 같습니다.assets
폴더내부 파일을 재귀적으로 삭제 후 s3버킷에 현재 git actions 컨테이너의./dist
파일과 동기화합니다.main
브랜치에 pr시 build + test함수 검사하는 git actions를 추가하였습니다package.json
내부packageManager
프로퍼티 추가 및 lint-staged + husky 정상작동 합니다📷 Screenshots
vercel 배포시간
aws 배포시간
🤔 고민사항