Skip to content

Commit

Permalink
feat(fxcore): Provided module (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkinox authored Jan 12, 2024
1 parent 2642228 commit 7d64e8f
Show file tree
Hide file tree
Showing 29 changed files with 3,780 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"
- "fxcore"
- "fxconfig"
- "fxgenerate"
- "fxhealthcheck"
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/fxcore-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "fxcore-ci"

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

jobs:
ci:
uses: ./.github/workflows/common-ci.yml
secrets: inherit
with:
module: "fxcore"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Yokai's `Fx modules` are the plugins for your Yokai application.

| Fx Module | Description |
|--------------------------------|-------------------------------------------------------------------------|
| [fxcore](fxcore) | Fx core module |
| [fxconfig](fxconfig) | Fx module for [config](config) |
| [fxgenerate](fxgenerate) | Fx module for [generate](generate) |
| [fxhealthcheck](fxhealthcheck) | Fx module for [healthcheck](healthcheck) |
Expand Down
62 changes: 62 additions & 0 deletions fxcore/.golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
run:
timeout: 5m
concurrency: 8

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

0 comments on commit 7d64e8f

Please sign in to comment.