Skip to content

Add CI/CD workflows, version flag (0.1.0), and cleanup#8

Merged
minami110 merged 1 commit intomainfrom
feature/ci
Feb 20, 2026
Merged

Add CI/CD workflows, version flag (0.1.0), and cleanup#8
minami110 merged 1 commit intomainfrom
feature/ci

Conversation

@minami110
Copy link
Copy Markdown
Owner

Summary

  • GitHub Actions CI ワークフロー追加(PR → main: フォーマット/vet/test チェック)
  • GitHub Actions Release ワークフロー追加(v* タグ: Linux/Windows クロスコンパイル + gh release create
  • -V/--version フラグ追加(ldflags で上書き可能、デフォルト: devmake build 時は 0.1.0
  • Makefile に VERSION ?= 0.1.0LDFLAGS を追加
  • 未使用の testdata/minimal-project/ を削除
  • .gitignore のバグ修正: gdunit4-test-runner パターンが cmd/gdunit4-test-runner/ ディレクトリを誤って無視していた問題を /gdunit4-test-runner に変更して修正
  • cmd/gdunit4-test-runner/main.go を追加(.gitignore バグにより前回 PR で未追跡だった)

Closes #6

Test plan

  • go test -race ./... が全て通過すること
  • make build && ./gdunit4-test-runner --versiongdunit4-test-runner 0.1.0
  • ./gdunit4-test-runner -Vgdunit4-test-runner 0.1.0
  • go build ./cmd/gdunit4-test-runner && ./gdunit4-test-runner --versiongdunit4-test-runner dev
  • PR マージ後、v0.1.0 タグをプッシュするとリリースワークフローが動作すること

🤖 Generated with Claude Code

- Add GitHub Actions CI workflow (PR check: fmt, vet, test)
- Add GitHub Actions Release workflow (v* tag: cross-compile + gh release)
- Add -V/--version flag with ldflags-injectable version (default: "dev")
- Set VERSION=0.1.0 in Makefile with LDFLAGS support
- Remove unused testdata/minimal-project/ directory
- Fix .gitignore to not match cmd/gdunit4-test-runner/ directory
- Add cmd/gdunit4-test-runner/main.go (was previously ignored by .gitignore)

Closes #6

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@minami110 minami110 self-assigned this Feb 20, 2026
@minami110 minami110 merged commit a7482cc into main Feb 20, 2026
1 check passed
@minami110 minami110 deleted the feature/ci branch February 20, 2026 09:33
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.

CI/CD セットアップ (GitHub Actions)

1 participant