ci: GitHub Actions による CI ワークフローを追加#16
Merged
Merged
Conversation
main への push / PR で test・build・vet+gofmt を mise 経由で実行する。 あわせて gofmt 未整形だった既存ファイルを整形 (差分は整列のみ)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
最新版 (2026.6.7) は linux-x64 バイナリ資産が未公開で mise-action のダウンロードが 404 になり全ジョブが失敗するため、 資産が揃っている直前バージョンを明示する。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
07dc019 to
38d6c3b
Compare
mise のバージョン明示ピン留めと go mod download を取りやめ、 mise-action v4 の github_token / cache とリポジトリ定義の mise setup に統一して依存解決をシンプルにした。あわせて checkout を v6 へ更新し、各ジョブに Draft PR をスキップする 条件を追加、vet ジョブを lint へ改称した。不要になった .github/workflows/.gitkeep も削除している。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
セットアップ方式の見直し時に外れていたバージョンピン留めを復活させた。 最新版 2026.6.7 は linux-x64 バイナリ資産が未公開のため mise-action のダウンロードが 404 となり全ジョブが失敗していた。 資産が揃っている直前バージョンを各 Setup mise ステップに明示する。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
概要
GitHub Actions による CI ワークフローを追加します。
mainへの push およびmain向け PR で、test・build・vet+gofmt を実行します。ワークフロー構成 (
.github/workflows/ci.yml)go test ./...mise run build(cmd/ 配下の全5バイナリ)gofmt -l .で未整形検出 +go vet ./...mainへの push とmain向け PRjdx/mise-action@v2でmise.tomlのピン留め (Go 1.25.7 / atlas / terraform) を再現し、ローカルと一致させるcontents: readに最小化あわせて整形した既存ファイル
gofmt チェックが初回から失敗する状態だったため、未整形だった既存4ファイルを
gofmt -wで整形しました (差分は整列・末尾改行のみ、ロジック変更なし):internal/modules/academic/domain/foundation.gointernal/modules/academic/handler/converter_course_registration_test.gointernal/modules/academic/handler/converter_timetable_item_test.gointernal/modules/academic/service/subject.goローカル検証
mise run build→ exit 0 ✅go test ./...→ 全パッケージ ok ✅gofmt -l .→ 空 ✅go vet ./...→ exit 0 ✅🤖 Generated with Claude Code