Skip to content

Commit

Permalink
lint: add golangci-lint action (#665)
Browse files Browse the repository at this point in the history
We add a golangci-lint action. It shouldn't be considered blocking, it
may detect bugs. staticcheck is still our main linter.
  • Loading branch information
sauterp authored Feb 12, 2025
1 parent 49a2e95 commit c080d82
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 11 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: golangci-lint

on:
pull_request:

jobs:
golangci-lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout 4m
22 changes: 14 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Improvements

- lint: add golangci-lint action #665

## 1.83.0

### Features
Expand Down Expand Up @@ -52,7 +58,7 @@

### Improvements
- dbaas: added commands for getting and updating datadog integration settings #635
- go.mk: upgrade to v2.0.3 #632
- go.mk: upgrade to v2.0.3 #632

### Bug fixes

Expand All @@ -67,7 +73,7 @@
### Improvements

- DBaaS: external endpoints and integrations commands #631
- go.mk: update to v2.0.2 #630
- go.mk: update to v2.0.2 #630

### Bug Fixes

Expand Down Expand Up @@ -103,15 +109,15 @@

### Improvements

- egoscale/v3: use separate module v3.1.0 #621
- egoscale/v3: use separate module v3.1.0 #621

## 1.78.3

### Improvements

- go.mk: lint with staticcheck #606
- go.mk: lint with staticcheck #606
- Update deprecated goreleaser directives #607
- sks nodepool: show instance family #615
- sks nodepool: show instance family #615
- Update exo x #616

### Bug Fixes
Expand All @@ -122,7 +128,7 @@
## 1.78.2

### Bug Fixes
- security-group: show instances from all zones #605
- security-group: show instances from all zones #605

## 1.78.1

Expand All @@ -132,7 +138,7 @@
## 1.78.0

### Features
- blockstorage: implement updating volume and snapshot labels and names #601
- blockstorage: implement updating volume and snapshot labels and names #601

## 1.77.2

Expand All @@ -144,7 +150,7 @@
- Block Storage: Fix volume show with snapshot #589
- storage presign: fix panic when parsing arg[0] #590
- dbaas migration show: fix panic #597
- sks: enable CSI addon on existing clusters #596
- sks: enable CSI addon on existing clusters #596

## 1.77.1

Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)

go 1.23.0

toolchain go1.23.1
go 1.23.6

0 comments on commit c080d82

Please sign in to comment.