Skip to content

ci: GitHub Actions による CI ワークフローを追加#16

Merged
masaya-osuga merged 4 commits into
mainfrom
ci/add-github-actions
Jun 14, 2026
Merged

ci: GitHub Actions による CI ワークフローを追加#16
masaya-osuga merged 4 commits into
mainfrom
ci/add-github-actions

Conversation

@masaya-osuga

Copy link
Copy Markdown
Member

概要

GitHub Actions による CI ワークフローを追加します。main への push および main 向け PR で、test・build・vet+gofmt を実行します。

ワークフロー構成 (.github/workflows/ci.yml)

ジョブ 内容
Test go test ./...
Build mise run build (cmd/ 配下の全5バイナリ)
Vet & Format gofmt -l . で未整形検出 + go vet ./...
  • トリガー: main への push と main 向け PR
  • セットアップ: jdx/mise-action@v2mise.toml のピン留め (Go 1.25.7 / atlas / terraform) を再現し、ローカルと一致させる
  • concurrency: 同一ブランチの新しい push で実行中ジョブを自動キャンセル
  • permissions: contents: read に最小化

あわせて整形した既存ファイル

gofmt チェックが初回から失敗する状態だったため、未整形だった既存4ファイルを gofmt -w で整形しました (差分は整列・末尾改行のみ、ロジック変更なし):

  • internal/modules/academic/domain/foundation.go
  • internal/modules/academic/handler/converter_course_registration_test.go
  • internal/modules/academic/handler/converter_timetable_item_test.go
  • internal/modules/academic/service/subject.go

ローカル検証

  • mise run build → exit 0 ✅
  • go test ./... → 全パッケージ ok ✅
  • gofmt -l . → 空 ✅
  • go vet ./... → exit 0 ✅

🤖 Generated with Claude Code

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>
@masaya-osuga masaya-osuga force-pushed the ci/add-github-actions branch from 07dc019 to 38d6c3b Compare June 14, 2026 07:44
kantacky and others added 2 commits June 14, 2026 17:01
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>

@kantacky kantacky left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@masaya-osuga masaya-osuga added this pull request to the merge queue Jun 14, 2026
Merged via the queue into main with commit 871ffb4 Jun 14, 2026
3 checks passed
@masaya-osuga masaya-osuga deleted the ci/add-github-actions branch June 14, 2026 08:10
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