chore/#49 local github action test용 secret 파일 gitignore에 추가 #68
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
요약 (Summary)
act를 추가하여 local에서 github action을 테스트해볼 수 있습니다.
배경 (Background)
github에서 실제 action을 돌려보기 전까지 코드가 잘 작성되었는지 확인하기 어려운 action 코드를 로컬에서 미리 테스트하여 불필요한 수정을 방지하기 위해
act
라는 라이브러리를 적용하였습니다.목표 (Goals)
pr을 올리기 전, 미리 github action을 로컬 환경에서 테스트해볼 수 있습니다.
이외 고려 사항들 (Other Considerations)
secret이 포함된 action 파일의 경우 실행시키기 위해선 로컬 환경의 secret 파일이 필요했고, 해당 파일의 이름을 임의로
local.secrets
로 설정하였습니다.(해당 파일을 만들어 필요한 액션의 secret을 추가하면 사용하실 수 있습니다.)
앞으로 작성하는 action 파일에 secret을 추가하신다면 잊지 말고 팀원들에게 공유해주세요!
(현재 secret 내용은 노션 > 디자인 시스템 > 구체적인 기술 스펙 > 계정 > local.secrets에 추가해놓았습니다. 현재 npm token, github token, primitive chromatic token을 추가해놓았습니다.)
관련 이슈