Skip to content

Commit

Permalink
feat(worker): Provided module (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkinox authored Jan 17, 2024
1 parent 6b8db45 commit 2f621b9
Show file tree
Hide file tree
Showing 34 changed files with 2,935 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- "log"
- "orm"
- "trace"
- "worker"
- "fxcore"
- "fxconfig"
- "fxgenerate"
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/worker-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "worker-ci"

on:
push:
branches:
- "feat**"
- "fix**"
- "hotfix**"
- "chore**"
paths:
- "worker/**.go"
- "worker/go.mod"
- "worker/go.sum"
pull_request:
types:
- opened
- synchronize
- reopened
branches:
- main
paths:
- "worker/**.go"
- "worker/go.mod"
- "worker/go.sum"

jobs:
ci:
uses: ./.github/workflows/common-ci.yml
secrets: inherit
with:
module: "worker"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Yokai `modules` are the foundation of the framework.
| [log](log) | Logging module based on [Zerolog](https://github.com/rs/zerolog) |
| [orm](orm) | ORM module based on [Gorm](https://gorm.io/) |
| [trace](trace) | Tracing module based on [OpenTelemetry](https://github.com/open-telemetry/opentelemetry-go) |
| [worker](worker) | Worker module based on [sync](https://pkg.go.dev/sync) |

They can also be used in any Go application (no Yokai or [Fx](https://github.com/uber-go/fx) dependencies).

Expand Down
5 changes: 5 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
"component": "trace",
"tag-separator": "/"
},
"worker": {
"release-type": "go",
"component": "worker",
"tag-separator": "/"
},
"fxcore": {
"release-type": "go",
"component": "fxcore",
Expand Down
66 changes: 66 additions & 0 deletions worker/.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 2f621b9

Please sign in to comment.