Skip to content

Commit 4c3fbc4

Browse files
committed
update lint, dependabot and github actions
1 parent 4079fc0 commit 4c3fbc4

File tree

4 files changed

+21
-12
lines changed

4 files changed

+21
-12
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22
updates:
33
- package-ecosystem: gomod
4-
directory: "/"
4+
directories: ["/", "/example", "providers/**/"]
55
schedule:
66
interval: monthly
77
- package-ecosystem: github-actions

.github/workflows/go.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ on:
88

99
jobs:
1010

11-
build:
11+
test:
1212
runs-on: ubuntu-latest
1313
strategy:
14+
fail-fast: false
1415
matrix:
15-
go: [ '1.23', '1.24' ]
16-
name: Go ${{ matrix.go }}
16+
go: ["oldstable", "stable"]
17+
name: Tests on Go ${{ matrix.go }}
1718
steps:
1819
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1920

@@ -23,8 +24,5 @@ jobs:
2324
go-version: ${{ matrix.go }}
2425
check-latest: true
2526

26-
- name: Build
27-
run: go build -v ./...
28-
29-
- name: Test
30-
run: go test -v ./...
27+
- name: Run tests
28+
run: make test

.github/workflows/lint.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "go.sum"
77
- "go.mod"
88
- "**.go"
9-
- ".github/workflows/golangci-lint.yml"
9+
- ".github/workflows/limt.yml"
1010
- ".golangci.yml"
1111
pull_request:
1212

@@ -27,8 +27,18 @@ jobs:
2727
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
2828
with:
2929
go-version: 1.24.x
30-
- name: Lint
30+
- name: Install golangci-lint
3131
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
3232
with:
33-
args: --verbose
33+
# golangci-lint needs to be run separately for every Go module, and
34+
# its GitHub Action doesn't provide any way to do that. Have it fetch
35+
# the golangci-lint binary, trick it into not running by sending only
36+
# `--help`, then run the full set of lints below. DO NOT run separate
37+
# modules as separate golangci-lint-action steps. Its post run caching
38+
# can be extremely slow, and that's amplified in a very painful way if
39+
# it needs to be run multiple times.
40+
args: --help
3441
version: v1.64
42+
- name: Run lint
43+
run: make lint
44+

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
linters:
22
enable:
3+
- revive
34
- misspell
45

56
issues:

0 commit comments

Comments
 (0)