Skip to content

Commit

Permalink
feat(config): Provided module (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkinox authored Jan 10, 2024
1 parent 7937ba0 commit 9bfe4cc
Show file tree
Hide file tree
Showing 24 changed files with 894 additions and 164 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/common-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
working-directory: ${{ inputs.module }}
run: go mod download
- name: Run tests
working-directory: ${{ inputs.modulemodule }}
working-directory: ${{ inputs.module }}
run: go test -v -race -failfast -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./...
- name: Codecov
uses: codecov/codecov-action@v3
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@ jobs:
coverage:
strategy:
matrix:
include:
- module: "config"
- module: "healthcheck"
- module: "httpclient"
- module: "generate"
- module: "log"
- module: "trace"
module:
- "config"

runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/generate-ci.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/healthcheck-ci.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/httpclient-ci.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/log-ci.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/trace-ci.yml

This file was deleted.

66 changes: 66 additions & 0 deletions config/.golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
run:
timeout: 5m
concurrency: 8

linters:
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
- cyclop
- decorder
- dogsled
- dupl
- durationcheck
- errcheck
- errchkjson
- errname
- errorlint
- exhaustive
- forbidigo
- forcetypeassert
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- godox
- gofmt
- goheader
- gomoddirectives
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
- grouper
- importas
- ineffassign
- interfacebloat
- logrlint
- maintidx
- makezero
- misspell
- nestif
- nilerr
- nilnil
- nlreturn
- nolintlint
- nosprintfhostport
- prealloc
- predeclared
- promlinter
- reassign
- staticcheck
- tenv
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- usestdlibvars
- whitespace
Loading

0 comments on commit 9bfe4cc

Please sign in to comment.