Repository navigation
ci: run Go tools from the flake dev shell - #17
Conversation
Drop setup-go and golangci-lint-action; every job now sets up Nix with the shared nix-setup action and runs its commands in `nix develop`. The nix-build job uses nix-setup as well, with its own cache key prefix. The nix-setup release SHA is still a placeholder (RELEASE_SHA). Refs furedea/reusable-workflows#23 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Refs furedea/reusable-workflows#23 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Review summaryNo P0, P1, P2 or P3 findings. What I checked in
Limitations:
🤖 Generated with Claude Code |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
概要
CI の Go ツール(
setup-go,golangci-lint-action)をやめ,flake の devShell から動かす形にする.Nix の準備は reusable-workflows の composite actionnix-setup(v1.3.0)を使う.setup-go,golangci-lint-action(v2.15.0)nix-buildジョブだけinstall-nix-actionnix-setup(Nix のインストールとキャッシュ)bashnix develop --command bash -eo pipefail {0}flake.nixは変更なし.x86_64-linuxの devShell と,CI に必要なツール(go_1_27,golangci-lint,go toolのgovulncheckとdeadcode)は既にある.all-greenのneedsは変えていない.nix-buildは devShell が要らないので,nix runのステップだけshell: bash.キャッシュはkey-prefix: nix-buildで分ける.lintだけが行う(同じキーでの保存競合を避けるため).format,test,auditはsave: false.Refs furedea/reusable-workflows#23
検証
nix flake check --all-systems --no-build --option allow-import-from-derivation false: 3 システムとも通過nix develop内でgolangci-lint run,golangci-lint fmt --diff,go mod tidy -diff,go test -race -cover ./...,go tool deadcode ./...: すべて通過go tool govulncheck: ローカルのサンドボックスでは脆弱性 DB に届かず未実行(CI で実行される)CI の時間
ジョブごと(変更後): lint 1:02,format 0:41,test 1:23,audit 1:07,nix-build 1:09,nix-check 1:22
codex-review(2 分 37 秒)を待つ時間なので比べない.計画からの変更点
なし.