Sitemap
2 Ho

2 Ho

Android Github Actions #1

2 min readMar 9, 2020

Github Actions 언제 사용하나?

- Github로 코드관리를 하고있는 경우
- 비용이 부담되는경우 (?)
- Github으로 코드리뷰, 배포 한번에 하고 싶을때 (이것저것 쓰고싶지 않을때?)

Press enter or click to view image in full size
pricing

먼저 Action을 사용하려면 yaml파일을 작성해야 한다.
Repository의 Actions - Android CI 를 선택하거나, ./gitgub/workflows 경로에 yaml 작성 후 머지하면 사용 할 수 있다.

  • Pull Requst 생성 시 실행되는 workflow
# run os : ubunto1. action checkout
2. java setup
3. action cache
4. assembleDebug
action.yaml

Pull Request를 작성하면

Press enter or click to view image in full size
pull request 작성시 actions이 동작되는 상태
Press enter or click to view image in full size
주황색 = 작동중
Press enter or click to view image in full size
초록체크 = 성공, 실패 = X

같이 진행중, 성공, 실패 일때의 상태를 알 수 있습니다.

Get 2 Ho’s stories in your inbox

Join Medium for free to get updates from this writer.

예제에서 사용한 프로젝트는 여기서 확인하실 수 있습니다.

--

--