Skip to content

Commit 09f481e

Browse files
authored
Merge pull request #123 from cedricherzog-passbolt/feature/PB-50035_Go-Add-linting-to-ci
PB-50035 - Go: Add linting to ci
2 parents 26d0bae + 84dad26 commit 09f481e

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

.github/workflows/.go.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-go@v5
15+
with:
16+
go-version: '1.25'
17+
- name: golangci-lint
18+
uses: golangci/golangci-lint-action@v7
19+
with:
20+
version: v2.4
21+
22+
test:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-go@v5
27+
with:
28+
go-version: '1.25'
29+
- name: Test
30+
run: go test -v ./...
31+
- name: Vet
32+
run: go vet ./...

.github/workflows/.release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Go
2121
uses: actions/setup-go@v5
2222
with:
23-
go-version: '1.21'
23+
go-version: '1.25'
2424

2525
- name: Run Tests
2626
run: go test -v ./...
@@ -40,7 +40,7 @@ jobs:
4040
- name: Set up Go
4141
uses: actions/setup-go@v5
4242
with:
43-
go-version: '1.21'
43+
go-version: '1.25'
4444

4545
- name: Generate Man and Completions
4646
run: |

0 commit comments

Comments
 (0)