Skip to content

ci: add flake build + nixfmt checks on for-business PRs#63

Merged
rin2yh merged 1 commit into
for-businessfrom
claude/for-business-ci
Jun 27, 2026
Merged

ci: add flake build + nixfmt checks on for-business PRs#63
rin2yh merged 1 commit into
for-businessfrom
claude/for-business-ci

Conversation

@rin2yh

@rin2yh rin2yh commented Jun 27, 2026

Copy link
Copy Markdown
Owner

概要

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 ubuntu-latest .nix ファイルが nixfmt-rfc-style の整形に従っているか --check
build macos-26 darwinConfigurations.default.system を実ビルドし、flake評価・依存更新による破壊を検出
  • アクションはコミットSHAでピン留め(actions/checkout v7.0.0 / DeterminateSystems/nix-installer-action v22)。
  • ランナーは最新GAの macos-26(arm64)でローカル環境に近づけています。
  • concurrency で同一refの古い実行はキャンセル。
  • for-business の flake.nix は username 差分のみで、ビルド対象は main と同じ darwinConfigurations.default です。

補足

  • ビルドジョブはmacOSランナーを消費します(for-business 宛PR時のみ)。
  • lint は既存 .nixnixfmt-rfc-style 整形済みである前提です。

🤖 Generated with Claude Code


Generated by Claude Code

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
@rin2yh rin2yh marked this pull request as ready for review June 27, 2026 13:53
@rin2yh rin2yh merged commit 5bc40c3 into for-business Jun 27, 2026
2 checks passed
@rin2yh rin2yh deleted the claude/for-business-ci branch June 27, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants