Skip to content

Commit 1513470

Browse files
committed
Fix lint job by running after build in ubuntu job
1 parent 912ba66 commit 1513470

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
ubuntu:
9-
name: Build and Test on Ubuntu
9+
name: Build, Test, and Lint on Ubuntu
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -31,6 +31,11 @@ jobs:
3131
- name: Run tests
3232
run: make test
3333

34+
- name: Run linter
35+
uses: golangci/golangci-lint-action@v9
36+
with:
37+
version: v2.6.1
38+
3439
macos:
3540
name: Build and Test on macOS
3641
runs-on: macos-latest
@@ -91,20 +96,3 @@ jobs:
9196

9297
- name: Run tests
9398
run: make test
94-
95-
lint:
96-
name: Lint
97-
runs-on: ubuntu-latest
98-
99-
steps:
100-
- uses: actions/checkout@v4
101-
102-
- name: Set up Go
103-
uses: actions/setup-go@v5
104-
with:
105-
go-version: '1.23.3'
106-
107-
- name: Run linter
108-
uses: golangci/golangci-lint-action@v9
109-
with:
110-
version: v2.6.1

0 commit comments

Comments
 (0)