Skip to content

Commit 3cc70cc

Browse files
committed
ci: remove showing the code coverage badge and ci tests
1 parent a98b431 commit 3cc70cc

4 files changed

Lines changed: 16 additions & 28 deletions

File tree

.github/workflows/go.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,5 @@ jobs:
2929
run: go build -v ./...
3030
- name: Install staticcheck
3131
run: go install honnef.co/go/tools/cmd/staticcheck@latest
32-
- name: Lint
33-
run: make lint
3432
- name: Test
35-
run: |
36-
go test -race -cover ./... -coverprofile coverage.out -coverpkg ./...
37-
go tool cover -func coverage.out -o coverage.out # Replaces coverage.out with the analysis of coverage.out
38-
39-
# coverage
40-
- name: Go Coverage Badge
41-
uses: tj-actions/coverage-badge-go@v2
42-
with:
43-
green: 80
44-
filename: coverage.out
45-
- uses: stefanzweifel/git-auto-commit-action@v4
46-
id: auto-commit-action
47-
with:
48-
commit_message: Apply Code Coverage Badge
49-
skip_fetch: true
50-
skip_checkout: true
51-
file_pattern: ./README.md
52-
- name: Push Changes
53-
if: steps.auto-commit-action.outputs.changes_detected == 'true'
54-
uses: ad-m/github-push-action@master
55-
with:
56-
github_token: ${{ github.token }}
57-
branch: ${{ github.ref }}
33+
run: make test

CLAUDE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ This is a Go library (`github.com/kazamori/orderedmap`) that provides a generic
99
## Common Commands
1010

1111
```bash
12-
# Run all tests with race detection and coverage
12+
# Run all tests (includes format check, linting, race detection, coverage)
1313
make test
1414

15+
# Check code formatting
16+
make fmt
17+
1518
# Run linting (go vet + staticcheck)
1619
make lint
1720

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,19 @@ clean:
1717
go clean -cache -testcache
1818
rm -f $(BINDIR)/*
1919

20+
fmt:
21+
@ FORMATTED=$$(go fmt ./... 2>&1); \
22+
if [ -n "$$FORMATTED" ]; then \
23+
echo "error: go fmt made changes to the following files:"; \
24+
echo "$$FORMATTED"; \
25+
exit 1; \
26+
else \
27+
echo "all files are formatted."; \
28+
fi
29+
2030
lint:
2131
go vet ./...
2232
staticcheck ./...
2333

24-
test: lint
34+
test: fmt lint
2535
go test -race -cover ./...

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# orderedmap
2-
![Coverage](https://img.shields.io/badge/Coverage-69.4%25-yellow)
32

43
A generic ordered map implementation in Go that preserves insertion order and supports JSON serialization/deserialization.
54

0 commit comments

Comments
 (0)