Skip to content

GitHub Actions で CI を追加#13

Merged
polidog merged 1 commit into
mainfrom
feat/12
Jun 26, 2026
Merged

GitHub Actions で CI を追加#13
polidog merged 1 commit into
mainfrom
feat/12

Conversation

@polidog

@polidog polidog commented Jun 26, 2026

Copy link
Copy Markdown
Member

タスク

Go プロジェクト env-sync に GitHub Actions の CI ワークフロー (.github/workflows/ci.yml) を追加する。

  • トリガー: main への push と pull_request
  • actions/checkout@v4 / actions/setup-go@v5go-version-file: go.mod)を使用し、既存 release.yml の書式に統一
  • 実行内容: gofmt チェック → go vet ./...go build ./...go test -race ./...
  • github_integration_test.gohttptest.NewServer によるモックテストのため、ネットワーク/トークン不要で CI でそのまま実行可能

完了条件

  • .github/workflows/ci.yml が存在し、push(main) と pull_request の両方で発火する
  • CI ジョブ内で gofmt チェック・go vet・go build・go test が実行される
  • ローカルで go vet ./... と go test ./... が成功する状態でコミットされている
  • 既存の release.yml と書式・action バージョンの整合が取れている
  • ネットワーク依存の統合テストが CI で落ちないよう適切に扱われている

動作確認

  • lint / build 通過
  • gofmt -l . 出力なし(フォーマット済み)
  • go vet ./... 成功
  • go build ./... 成功
  • go test -race ./... 成功(ok github.com/ptyhard/env-sync 2.084s)

品質チェック結果

特記事項なし

パフォーマンス診断

CI ワークフローファイルのみの変更のため対象外

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Go プロジェクト env-sync に対して、GitHub Actions の CI ワークフローを追加し、push(main) と pull_request の両方でフォーマット・静的解析・ビルド・テスト(race あり)を自動実行できるようにする PR です。

Changes:

  • .github/workflows/ci.yml を追加し、main への push と pull_request をトリガーに設定
  • actions/checkout@v4 / actions/setup-go@v5go-version-file: go.mod)を用意し、gofmtgo vetgo buildgo test -race を実行

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
Comment on lines +7 to +9
pull_request:

jobs:
Comment thread .github/workflows/ci.yml
go-version-file: go.mod
- name: Check formatting
run: |
files=$(gofmt -l .)
@polidog polidog merged commit 67c6e5c into main Jun 26, 2026
2 checks passed
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