Add CI/CD workflows, version flag (0.1.0), and cleanup#8
Merged
Conversation
- 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>
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.
Summary
v*タグ: Linux/Windows クロスコンパイル +gh release create)-V/--versionフラグ追加(ldflags で上書き可能、デフォルト:dev、make build時は0.1.0)VERSION ?= 0.1.0とLDFLAGSを追加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 --version→gdunit4-test-runner 0.1.0./gdunit4-test-runner -V→gdunit4-test-runner 0.1.0go build ./cmd/gdunit4-test-runner && ./gdunit4-test-runner --version→gdunit4-test-runner devv0.1.0タグをプッシュするとリリースワークフローが動作すること🤖 Generated with Claude Code