File tree Expand file tree Collapse file tree 4 files changed +21
-12
lines changed
Expand file tree Collapse file tree 4 files changed +21
-12
lines changed Original file line number Diff line number Diff line change 11version : 2
22updates :
33 - package-ecosystem : gomod
4- directory : " /"
4+ directories : [ "/", "/example", "providers/**/"]
55 schedule :
66 interval : monthly
77 - package-ecosystem : github-actions
Original file line number Diff line number Diff line change 88
99jobs :
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
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
Original file line number Diff line number Diff line change 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
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+
Original file line number Diff line number Diff line change 11linters :
22 enable :
3+ - revive
34 - misspell
45
56issues :
You can’t perform that action at this time.
0 commit comments