ci: add flake build + nixfmt checks on for-business PRs#63
Merged
Conversation
Mirrors the main-branch CI for the for-business variant: on pull requests targeting for-business, lint .nix formatting and build the aarch64-darwin darwinConfiguration on a macOS runner. - lint: nixfmt-rfc-style --check on ubuntu - build: nix build .#darwinConfigurations.default.system on macos-26 - actions pinned to SHA (checkout v7.0.0, nix-installer-action v22) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017zhEKbHFbFbZ8TQfEgkSdF
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
概要
for-businessブランチ用のCIワークフロー (.github/workflows/ci.yml) を追加します。main向けCI(#62)と同等の内容を、for-business バリアントにも適用します。GitHub Actions の仕様上、
pull_requestのワークフロー定義はベースブランチ側のものが使われるため、for-business 宛PRでCIを動かすにはワークフローが for-business ブランチ上に存在する必要があります。本PRをマージすることで有効になります。内容
トリガー:
for-business宛の pull request のみ(workflow_dispatchなし)。lint.nixファイルがnixfmt-rfc-styleの整形に従っているか--checkbuilddarwinConfigurations.default.systemを実ビルドし、flake評価・依存更新による破壊を検出actions/checkoutv7.0.0 /DeterminateSystems/nix-installer-actionv22)。macos-26(arm64)でローカル環境に近づけています。concurrencyで同一refの古い実行はキャンセル。flake.nixは username 差分のみで、ビルド対象は main と同じdarwinConfigurations.defaultです。補足
lintは既存.nixがnixfmt-rfc-style整形済みである前提です。🤖 Generated with Claude Code
Generated by Claude Code