Skip to content

Commit 8233308

Browse files
committed
github: add linting CI step
1 parent 5e25dcf commit 8233308

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/golangci-lint.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: golangci-lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
golangci:
13+
name: lint
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-go@v5
18+
with:
19+
go-version: stable
20+
- name: golangci-lint
21+
uses: golangci/golangci-lint-action@v7
22+
with:
23+
version: v2.0

internal/types/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type HttpServer struct {
4545
}
4646

4747
type Configuration struct {
48-
Hostname string `yaml:"hostname"`
48+
Hostname string `yaml:"hostname"`
4949
StateDir string `yaml:"state_dir"`
5050
StateFilepath string `yaml:"state_filepath"`
5151
FlakeSubdirectory string `yaml:"flake_subdirectory"`

0 commit comments

Comments
 (0)