-
Notifications
You must be signed in to change notification settings - Fork 8
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
[FE] ci 워크플로우 구축 #40
[FE] ci 워크플로우 구축 #40
Conversation
Test Results0 tests 0 ✅ 0s ⏱️ Results for commit fc70cce. ♻️ This comment has been updated with latest results. |
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.
빙봉뱅봉~
run: npm ci | ||
|
||
- name: RTL을 실행해요 :) | ||
run: npm run test -- --passWithNoTests |
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.
아무런 테스트를 진행하지 않는 경우에도, CI 파이프라인이 통과될 수 있도록 하기 위한 설정이군요!
설정 고생하셨습니다 빙봉~ 🔮
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.
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
if: always() | ||
with: | ||
files: frontend/test-results/results.xml |
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.
PR 본문에 테스트 결과 표시를 위해서는, jest-junit
의존성을 추가하고 테스트 완료 시, xml 파일 생성 후 테스트 결과를 작성하도록 해야 함!
(기록용 코멘트 입니다 ㅎㅎ)
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.
고생하셨습니다~! 같이 보고 갔어야했는데 마무리 해줘서 고마워요!
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "lts/*" |
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.
노드 버전 설정 관련돼서 설정하는 방법이 https://github.com/actions/setup-node 여기 명시돼있네요!
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.
🙂
@seokmyungham 재즈! |
4cc9703
Jest 실행 시 `--passWithNoTests` 옵션 추가
- 'detect-changes' 작업 추가로 변경 사항 감지 및 조건부 실행 구현 - 'fe-test' 작업을 변경된 파일이 'frontend/**' 경로에 있을 때만 실행되도록 설정
4cc9703
to
fc70cce
Compare
관련 이슈
작업 내용
frontend
디렉토리에 대해 GitHub Actions를 이용한 CI 워크플로우를 설정하였습니다.특이 사항
리뷰 요구사항 (선택)