Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions .github/workflows/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ jobs:
if: ${{ github.event.inputs.docs_only != 'true' }}
run: go test -v ./...

- name: Import GPG key
if: ${{ github.event.inputs.docs_only != 'true' }}
id: gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true

- name: Calculate next version
if: ${{ github.event.inputs.docs_only != 'true' }}
id: version
Expand Down Expand Up @@ -151,12 +161,14 @@ jobs:
env:
TAG_NAME: ${{ steps.version.outputs.tag }}
SOURCE_BRANCH: ${{ steps.branches.outputs.source }}
GIT_USER_NAME: ${{ steps.gpg.outputs.name }}
GIT_USER_EMAIL: ${{ steps.gpg.outputs.email }}
run: |
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "$GIT_USER_NAME"
git config user.email "$GIT_USER_EMAIL"
git add CHANGELOG.md
git commit -m "Release ${TAG_NAME}: Update CHANGELOG version"
git commit -S -m "Release ${TAG_NAME}: Update CHANGELOG version"
git push origin "$SOURCE_BRANCH"
echo "✅ CHANGELOG update committed to $SOURCE_BRANCH branch"

Expand Down Expand Up @@ -244,6 +256,8 @@ jobs:
PR_NUMBER: ${{ steps.pr.outputs.number }}
SOURCE_BRANCH: ${{ steps.branches.outputs.source }}
GH_TOKEN: ${{ github.token }}
GIT_USER_NAME: ${{ steps.gpg.outputs.name }}
GIT_USER_EMAIL: ${{ steps.gpg.outputs.email }}
run: |
set -euo pipefail

Expand All @@ -267,10 +281,10 @@ jobs:
fi

# Commit and push the change
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "$GIT_USER_NAME"
git config user.email "$GIT_USER_EMAIL"
git add CHANGELOG.md
git commit -m "Add PR #${PR_NUMBER} link to CHANGELOG for ${TAG_NAME}"
git commit -S -m "Add PR #${PR_NUMBER} link to CHANGELOG for ${TAG_NAME}"
git push origin "$SOURCE_BRANCH"

echo "✅ Added PR #${PR_NUMBER} link to CHANGELOG.md"
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

### Changed

### Fixed

## [0.2.0] - 2026-01-27 ([#9](https://github.com/Its-donkey/mutagoph/pull/9))

### Added
- **Comprehensive reporter tests** (`internal/reporter`)
- Achieved 98.6% mutation score (292 killed, 4 equivalent mutations)
Expand Down
3 changes: 2 additions & 1 deletion internal/cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ func TestCache_Stats(t *testing.T) {
c, _ := New(t.TempDir())

// Initially empty
mem, disk, size := c.Stats()
var size int64
mem, disk, _ := c.Stats()
if mem != 0 {
t.Errorf("Initial memory count = %d, want 0", mem)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ func TestCapacityEstimation(t *testing.T) {
if totalTargets+3 == capacity {
t.Error("*3 should be different from +3")
}
if 3 == capacity {
if capacity == 3 {
t.Error("*3 result should not equal just 3")
}
if totalTargets == capacity {
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/deps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func TestDefaultConfigLoader(t *testing.T) {
loader := &defaultConfigLoader{}
cfg := loader.LoadOrDefault()
if cfg == nil {
t.Error("LoadOrDefault returned nil")
t.Fatal("LoadOrDefault returned nil")
}
// Verify default values are set
if cfg.Target == "" {
Expand Down
Loading