Skip to content

Commit 56d402e

Browse files
committed
Fix CI
1 parent 399be9d commit 56d402e

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,15 @@ jobs:
1515
go-version: 1.24
1616
- name: Check out code into the Go module directory
1717
uses: actions/checkout@v4
18-
- name: Lint, test and build
18+
- name: Lint
19+
run: make lint
20+
- name: Format
21+
run: make format && git diff --exit-code
22+
- name: Test
23+
run: make test
24+
- name: Build
1925
run: |
2026
21-
# Install staticcheck for linting
22-
go install honnef.co/go/tools/cmd/[email protected]
23-
24-
# Lint and format
25-
make lint
26-
make format
27-
28-
# Exit if after formatting there are any code differences
29-
git diff --exit-code
30-
31-
# Run tests
32-
make test
33-
34-
# Build and package
3527
if [ ${{ github.event_name }} == "release" ]; then
3628
VERSION="${{ github.event.release.tag_name }}"
3729
else

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ zip:
4848

4949
lint:
5050
@echo "=============Linting============="
51-
staticcheck ./...
51+
go run honnef.co/go/tools/cmd/staticcheck@v0.6.0 ./...
5252

5353
format:
5454
@echo "=============Formatting============="

0 commit comments

Comments
 (0)