Skip to content

Commit 2004748

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 2004748

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

.github/workflows/unit.yml renamed to .github/workflows/lint.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,16 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
fail-fast: false
8-
matrix:
9-
go-version:
10-
- "1.22"
118

129
steps:
1310
- name: Checkout source
1411
uses: actions/checkout@v5
1512

16-
- name: Setup Go ${{ matrix.go-version }}
13+
- name: Setup Go
1714
uses: actions/setup-go@v5
1815
with:
19-
go-version: ${{ matrix.go-version }}
16+
go-version: "1"
2017

2118
- name: Run linters
2219
run: |
2320
make lint
24-
25-
- name: Run unit tests
26-
run: |
27-
make unit

.github/workflows/unit.yaml

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

0 commit comments

Comments
 (0)