Skip to content

Commit 2f3788e

Browse files
committed
Split lint, unit test jobs
There's no reason we need to constrain our version of Go for linters: It is only necessary for unit tests. Make this possible by splitting our workflows. Signed-off-by: Stephen Finucane <[email protected]>
1 parent 7e7b841 commit 2f3788e

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

.github/workflows/lint.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Unit Testing
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
9+
steps:
10+
- name: Checkout source
11+
uses: actions/checkout@v5
12+
13+
- name: Setup Go
14+
uses: actions/setup-go@v5
15+
with:
16+
go-version: "1.25"
17+
18+
- name: Run linters
19+
run: |
20+
make lint

.github/workflows/unit.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,14 @@ on: [push, pull_request]
33
jobs:
44
test:
55
runs-on: ubuntu-latest
6-
strategy:
7-
fail-fast: false
8-
matrix:
9-
go-version:
10-
- "1.22"
11-
126
steps:
137
- name: Checkout source
148
uses: actions/checkout@v5
159

16-
- name: Setup Go ${{ matrix.go-version }}
10+
- name: Setup Go
1711
uses: actions/setup-go@v5
1812
with:
19-
go-version: ${{ matrix.go-version }}
20-
21-
- name: Run linters
22-
run: |
23-
make lint
13+
go-version-file: 'go.mod'
2414

2515
- name: Run unit tests
2616
run: |

0 commit comments

Comments
 (0)