Skip to content

Commit 688f32f

Browse files
authored
Merge pull request #291 from Luap99/go-tidy-ci
gh action: add go tidy check
2 parents 36c0fee + 6f52244 commit 688f32f

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

.github/workflows/validate.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,17 @@ jobs:
8686
# We validate all commits as we only fetched the number of commits in the PR above,
8787
# by default git-validation has some special github action handling but that seems broken.
8888
run: make .install.gitvalidation && git-validation -no-github
89+
90+
go-tidy:
91+
runs-on: ubuntu-24.04
92+
steps:
93+
- uses: actions/checkout@v5
94+
- uses: actions/setup-go@v5
95+
with:
96+
go-version: 1.25.x
97+
# See comment on lint task
98+
cache-dependency-path: "**/go.sum"
99+
- name: tidy
100+
run: make tidy
101+
- name: check if tree is clean
102+
run: hack/tree_status.sh

common/hack/tree_status.sh renamed to hack/tree_status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -e
33

4-
SUGGESTION="${SUGGESTION:-run \"make vendor\" and commit all changes.}"
4+
SUGGESTION="${SUGGESTION:-run \"make tidy\" and commit all changes.}"
55

66
STATUS=$(git status --porcelain)
77
if [[ -z $STATUS ]]

storage/hack/tree_status.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)