Skip to content

Commit 181f0da

Browse files
committed
chore: split workflow
Signed-off-by: Fernandez Ludovic <[email protected]>
1 parent 33e4f44 commit 181f0da

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

.github/workflows/gci.yml renamed to .github/workflows/build.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: gci
1+
name: build
22

33
on:
44
pull_request:
55

66
jobs:
77
build:
8-
name: Tests
8+
name: Build and Tests
99
runs-on: ${{ matrix.os }}
1010
env:
1111
GOVER: 1.23
@@ -22,13 +22,10 @@ jobs:
2222
uses: actions/setup-go@v5
2323
with:
2424
go-version: ${{ env.GOVER }}
25-
- name: golangci-lint
26-
if: matrix.os == 'linux'
27-
uses: golangci/golangci-lint-action@v6
28-
with:
29-
version: ${{ env.GOLANGCILINT_VER }}
3025
- name: Run make test
3126
env:
3227
COVERAGE_OPTS: "-coverprofile=coverage.txt -covermode=atomic"
3328
run: make test
29+
- name: Run make build
30+
run: make build
3431

.github/workflows/lint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: lint
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
lint:
8+
runs-on: ubuntu-latest
9+
env:
10+
GOVER: 1.23
11+
GOPROXY: https://proxy.golang.org
12+
steps:
13+
- name: Check out code into the Go module directory
14+
uses: actions/checkout@v4
15+
- name: Set up Go ${{ env.GOVER }}
16+
uses: actions/setup-go@v5
17+
with:
18+
go-version: ${{ env.GOVER }}
19+
- name: golangci-lint
20+
uses: golangci/golangci-lint-action@v6
21+
with:
22+
version: ${{ env.GOLANGCILINT_VER }}
23+

0 commit comments

Comments
 (0)