From 67b934bdcbe19a746a82c83c0a8eb9676106fdab Mon Sep 17 00:00:00 2001 From: KAWASHIMA Yoshiyuki Date: Fri, 10 Feb 2023 05:11:25 +0900 Subject: [PATCH 1/4] =?UTF-8?q?CI=20=E7=92=B0=E5=A2=83=E3=82=92=E6=A7=8B?= =?UTF-8?q?=E7=AF=89=E3=81=99=E3=82=8B=E8=AA=B2=E9=A1=8C=E3=82=92=E4=BD=9C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs #35 --- CI.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 CI.md diff --git a/CI.md b/CI.md new file mode 100644 index 0000000..290193d --- /dev/null +++ b/CI.md @@ -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) From a4b5a87d88ad0e5dee564f9dd1cb95e1900c7a9e Mon Sep 17 00:00:00 2001 From: KAWASHIMA Yoshiyuki Date: Fri, 10 Feb 2023 05:19:28 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=E3=83=89=E3=82=AD=E3=83=A5=E3=83=A1?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=83=87=E3=82=A3=E3=83=AC=E3=82=AF=E3=83=88?= =?UTF-8?q?=E3=83=AA=E3=81=AB=E8=AA=B2=E9=A1=8C=E3=81=AE=E3=83=95=E3=82=A1?= =?UTF-8?q?=E3=82=A4=E3=83=AB=E3=82=92=E7=A7=BB=E5=8B=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs #35 --- CI.md => Documentation/CI.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename CI.md => Documentation/CI.md (100%) diff --git a/CI.md b/Documentation/CI.md similarity index 100% rename from CI.md rename to Documentation/CI.md From 4d0960e22843efe73f286b158edc00ee1aa13c23 Mon Sep 17 00:00:00 2001 From: KAWASHIMA Yoshiyuki Date: Fri, 10 Feb 2023 05:21:08 +0900 Subject: [PATCH 3/4] =?UTF-8?q?CI=E3=81=AE=E8=AA=B2=E9=A1=8C=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs #35 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1dc7f56..dc04ca1 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ Session1がレビュー待ちの場合... 1. `session/1`のマージ後、`session/2`を`main`でrebaseする # Session +0. [CI](Documentation/CI.md) 1. [AutoLayout](Documentation/AutoLayout.md) 1. [API](Documentation/API.md) 1. [Lifecycle](Documentation/VC_Lifecycle.md) From 4db2456de378c7f1ea0c17be7cd3adced4ae073f Mon Sep 17 00:00:00 2001 From: KAWASHIMA Yoshiyuki Date: Sat, 18 Mar 2023 17:42:00 +0900 Subject: [PATCH 4/4] =?UTF-8?q?CI=20=E7=92=B0=E5=A2=83=E3=81=AB=E3=82=BB?= =?UTF-8?q?=E3=83=AB=E3=83=95=E3=83=9B=E3=82=B9=E3=83=86=E3=83=83=E3=83=89?= =?UTF-8?q?=E3=83=A9=E3=83=B3=E3=83=8A=E3=83=BC=E3=81=AE=E5=88=A9=E7=94=A8?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation/CI.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/CI.md b/Documentation/CI.md index 290193d..56938d4 100644 --- a/Documentation/CI.md +++ b/Documentation/CI.md @@ -10,8 +10,13 @@ GitHub には GitHub Actions という仕組みで CI を導入できるよう https://docs.github.com/ja/actions/learn-github-actions/understanding-github-actions +さらに CI を自分の PC 環境で動かすことも可能です。これにより、研修の CI 環境を業務の CI 環境と切り離すことができるので安心して試せます。 + +https://docs.github.com/ja/actions/hosting-your-own-runners/about-self-hosted-runners + # 課題 -GitHub Actions で PR が更新されたらビルドとテストを実行する CI 環境を構築してみよう +GitHub Actions のセルフホステッドランナーを利用して PR が更新されたらビルドとテストを実行する CI 環境を構築してみよう ## 参考 +- [GitHub Actions でセルフホステッドランナーを使う](https://zenn.dev/yumemi_inc/articles/github-actions-hosted-runner) - [GitHub Actions で XCTest を実行する](https://zenn.dev/yumemi_inc/articles/xctest-github-actions)