Skip to content

Commit cdea0d2

Browse files
Updated lint check with make
1 parent 5225d45 commit cdea0d2

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/format.yaml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# .github/workflows/gofmt.yml
2-
name: Gofmt Check
2+
# .github/workflows/lint.yml
3+
name: Lint Check
34

45
on:
56
push:
67
branches:
78
- '**'
89

910
jobs:
10-
gofmt:
11-
name: Run gofmt
11+
lint:
12+
name: Run make lint
1213
runs-on: ubuntu-latest
1314

1415
steps:
@@ -20,12 +21,5 @@ jobs:
2021
with:
2122
go-version: '1.24.2'
2223

23-
- name: Check formatting with gofmt
24-
run: |
25-
unformatted=$(gofmt -l .)
26-
if [ -n "$unformatted" ]; then
27-
echo "The following files are not properly formatted:"
28-
echo "$unformatted"
29-
echo "Run 'gofmt -w .' to fix them."
30-
exit 1
31-
fi
24+
- name: Run lint
25+
run: make lint

0 commit comments

Comments
 (0)