Skip to content

Commit 9bfe4cc

Browse files
authored
feat(config): Provided module (#1)
1 parent 7937ba0 commit 9bfe4cc

24 files changed

+894
-164
lines changed

.github/workflows/common-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
working-directory: ${{ inputs.module }}
3232
run: go mod download
3333
- name: Run tests
34-
working-directory: ${{ inputs.modulemodule }}
34+
working-directory: ${{ inputs.module }}
3535
run: go test -v -race -failfast -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./...
3636
- name: Codecov
3737
uses: codecov/codecov-action@v3

.github/workflows/coverage.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,9 @@ jobs:
1919
coverage:
2020
strategy:
2121
matrix:
22-
include:
23-
- module: "config"
24-
- module: "healthcheck"
25-
- module: "httpclient"
26-
- module: "generate"
27-
- module: "log"
28-
- module: "trace"
22+
module:
23+
- "config"
24+
2925
runs-on: ubuntu-latest
3026
steps:
3127
- name: Checkout repo

.github/workflows/generate-ci.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/healthcheck-ci.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/httpclient-ci.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/log-ci.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/trace-ci.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

config/.golangci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
run:
2+
timeout: 5m
3+
concurrency: 8
4+
5+
linters:
6+
enable:
7+
- asasalint
8+
- asciicheck
9+
- bidichk
10+
- bodyclose
11+
- containedctx
12+
- contextcheck
13+
- cyclop
14+
- decorder
15+
- dogsled
16+
- dupl
17+
- durationcheck
18+
- errcheck
19+
- errchkjson
20+
- errname
21+
- errorlint
22+
- exhaustive
23+
- forbidigo
24+
- forcetypeassert
25+
- gocognit
26+
- goconst
27+
- gocritic
28+
- gocyclo
29+
- godot
30+
- godox
31+
- gofmt
32+
- goheader
33+
- gomoddirectives
34+
- gomodguard
35+
- goprintffuncname
36+
- gosec
37+
- gosimple
38+
- govet
39+
- grouper
40+
- importas
41+
- ineffassign
42+
- interfacebloat
43+
- logrlint
44+
- maintidx
45+
- makezero
46+
- misspell
47+
- nestif
48+
- nilerr
49+
- nilnil
50+
- nlreturn
51+
- nolintlint
52+
- nosprintfhostport
53+
- prealloc
54+
- predeclared
55+
- promlinter
56+
- reassign
57+
- staticcheck
58+
- tenv
59+
- thelper
60+
- tparallel
61+
- typecheck
62+
- unconvert
63+
- unparam
64+
- unused
65+
- usestdlibvars
66+
- whitespace

0 commit comments

Comments
 (0)