Skip to content

Commit 0299cd5

Browse files
committed
add lint action
1 parent aa15507 commit 0299cd5

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.github/workflows/cli.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- "sql/**"
99
- "styles/**"
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
cli-build:
1316
runs-on: ubuntu-latest

.github/workflows/lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Lint
2+
3+
on: [push]
4+
5+
permissions:
6+
contents: read
7+
checks: write
8+
9+
jobs:
10+
golangci:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/setup-go@v5
14+
with:
15+
go-version: 1.23.x
16+
17+
- uses: actions/checkout@v4
18+
19+
- name: golangci-lint
20+
uses: golangci/golangci-lint-action@v6
21+
with:
22+
version: latest

.github/workflows/server.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- "*.md"
77
- "cli/**"
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)