-
Notifications
You must be signed in to change notification settings - Fork 0
[FEAT] CI & Swiftlint autocorrect 깃허브 액션 추가 #98
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
Conversation
- 컨벤션 파일 제거로 인한 빌드 파일 수정
- Run SwiftLint 스크립트 추가 - SwiftLint rule 파일 추가
- Build 테스트 포함 - Swiftlint 테스트 포함
- Debug.xcconfig를 Resource 폴더에 추가함 - 해당 파일은 ignore로 걸러지도록 함 - info에 Key의 이름을 등록해두어 Bundle로 찾도록 설정
- 새로운 Debug.xcconfig를 무시하도록 수정 - 기존 ignore 설정을 보기 쉽게 정리
- Secrets.swift의 enum을 열도록 할 예정 - 해당 파일에서 Key 호출을 위한 여러 컴퓨티드 프로퍼티 제공 - 변경된 프로퍼티에 맞게 호출 코드도 일부 수정
- 깃헙 액션에 맞게 파일 이름 수정 - CI → ci - Swiftlint autocorrect → swiftlint-autocorrect - 추가로 autocorrect의 작동 시기를 Push → PR open으로 수정하여 깃액션 작동 빈도를 줄임
- Secrets enum을 대체할 KeyPath enum을 추가 - gitignore에서 Secrets.swift 추적 제한 제거 - 빌드 파일 수정
- 몇몇 이모지가 생각보다 촌스러워서 수정함
…pply-CI-with-swiftlint # Conflicts: # Poppool/Poppool/Application/AppDelegate.swift # Poppool/Poppool/Presentation/Admin/AdminRegister/PopUpStoreRegisterViewController.swift # Poppool/Poppool/Presentation/Admin/Data/MapDomain/MapPopUpStore.swift # Poppool/Poppool/Presentation/Map/Common/GMSMapViewDelegateProxy.swift # Poppool/Poppool/Presentation/Map/Common/MapUtilities.swift # Poppool/Poppool/Presentation/Map/FillterSheetView/FilterBottomSheetView.swift # Poppool/Poppool/Presentation/Map/FillterSheetView/FilterBottomSheetViewController.swift # Poppool/Poppool/Presentation/Map/FindMap/MapGuideView/FullScreenMapViewController.swift # Poppool/Poppool/Presentation/Map/FindMap/MapGuideView/MapGuideViewController.swift # Poppool/Poppool/Presentation/Map/MapView/MapMarker.swift # Poppool/Poppool/Presentation/Map/MapView/MapView.swift # Poppool/Poppool/Presentation/Map/MapView/MapViewController.swift Co-Authored-By: ki hyeon kim <[email protected]>
Co-Authored-By: JunYoung <[email protected]>
dongglehada
left a comment
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.
시크릿에서 키패스로 변경이 되었군요 변경상항은 확인 하였습니다! 정리해주신 내용 확인해보겠습니다!
| echo "No changes to commit" | ||
| fi | ||
|
|
||
| build: |
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 Flow를 여기서 정의하는 걸까요..? 신기합니다!
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 내부에 여러 jobs을 둘 수 있고 현재 총 두개의 job을 두고 있습니다.
- autocorrect: 해당 job에 포함된 step에 따라 swiftlint 자동 수정 및 수정 내용 커밋
- build: 스텝에 따라 빌드 환경을 구성한 뒤 빌드와 린트 테스트
이 두가지의 작업이 성공적으로 끝나면 PR이 병합될 수 있는 상태로 판단해줍니다!
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.
친절한 설명감사합니다.. 확인했습니다!
| echo "No changes to commit" | ||
| fi | ||
|
|
||
| build: |
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.
친절한 설명감사합니다.. 확인했습니다!



📌 이슈
✅ 작업 사항
🚀 테스트 방식
Swiftlint 테스트
깃허브 액션 테스트
변경된 Key 관리 테스트
👀 ETC (추후 개발해야 할 것, 참고자료 등) ->
Caution
이번 PR을 통해 Secrets.swift의 추적 제한이 풀렸습니다❗
PR이 병합되고 난 후 반드시 Secrets.swift를 디렉토리에서 제거하고, 작업자의 커밋에 포함되지 않았는지 꼭 확인해주세요❗❗❗