-
Notifications
You must be signed in to change notification settings - Fork 41
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
CI 環境を構築する課題を作成 #40
Closed
Closed
CI 環境を構築する課題を作成 #40
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# CI | ||
|
||
> 継続的インテグレーション (CI) とは、ソフトウェアの開発においてコードを頻繁に共有リポジトリにコミットする手法のことです。 コードをコミットする頻度が高いほどエラーの検出が早くなり、開発者がエラーの原因を見つけるためにデバッグしなければならないコードの量も減ります。 | ||
|
||
https://docs.github.com/ja/actions/automating-builds-and-tests/about-continuous-integration | ||
|
||
CI の導入により、研修中にビルドができなくなったり、テストが失敗するようになったことを自動検知し、自身とレビュワーの負荷を減らすことができます。 | ||
|
||
GitHub には GitHub Actions という仕組みで CI を導入できるようになっています。 | ||
|
||
https://docs.github.com/ja/actions/learn-github-actions/understanding-github-actions | ||
|
||
# 課題 | ||
GitHub Actions で PR が更新されたらビルドとテストを実行する CI 環境を構築してみよう | ||
|
||
## 参考 | ||
- [GitHub Actions で XCTest を実行する](https://zenn.dev/yumemi_inc/articles/xctest-github-actions) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
今ってyumemi orgに入れてるんですっけ
publicにしてyumemi-inc or 個人にいれるとレビュワーの問題があるが
actionsでレビュワーの自動アサインはできたので、auto_request_review.ymlの設定さえ用意しちゃえばpublic運用にしちゃってもよいかも
https://github.com/marketplace/actions/auto-request-review
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.
yumemi org で private で実施し、終了後に public -> 個人のアカウントに transfer となっています。
この後、個人で private にして、 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.
GitHub Actions のセルフホステッドランナーを利用した場合、課金事故は防げますが、
今度は、 private -> public にした場合、セキュリティホールになるリスクがあります。
いずれにせよ、 GitHub Actions を利用してもらうなら、そういった観点の理解も必要になり、それをこの研修の目的にすべきなのか検討する必要があります。