Skip to content

Commit 2e7c6ef

Browse files
ghamez-devekkinox
andauthored
feat(fxtestcontainer): Provided module (#39)
* feat(fxtestcontainer): provide module * feat(fxtestcontainer): add config base container creation using yaml files * fix(fxtestcontainer): add missing test * fix(fxtestcontainer): add test CI --------- Co-authored-by: Jonathan Vuillemin <ekkinox@gmail.com>
1 parent bb9174d commit 2e7c6ef

File tree

14 files changed

+1301
-1
lines changed

14 files changed

+1301
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- "fxjsonapi"
2121
- "fxslack"
2222
- "fxredis"
23+
- "fxtestcontainer"
2324
steps:
2425
- name: Checkout
2526
uses: actions/checkout@v4
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "fxtestcontainer-ci"
2+
3+
on:
4+
push:
5+
branches:
6+
- "feat**"
7+
- "fix**"
8+
- "hotfix**"
9+
- "chore**"
10+
paths:
11+
- "fxtestcontainer/**.go"
12+
- "fxtestcontainer/go.mod"
13+
- "fxtestcontainer/go.sum"
14+
pull_request:
15+
types:
16+
- opened
17+
- synchronize
18+
- reopened
19+
branches:
20+
- main
21+
paths:
22+
- "fxtestcontainer/**.go"
23+
- "fxtestcontainer/go.mod"
24+
- "fxtestcontainer/go.sum"
25+
26+
jobs:
27+
ci:
28+
uses: ./.github/workflows/common-ci.yml
29+
secrets: inherit
30+
with:
31+
module: "fxtestcontainer"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
| [fxgcppubsub](fxgcppubsub) | Module for [GCP Pub/Sub](https://cloud.google.com/pubsub) |
1515
| [fxgomysqlserver](fxgomysqlserver) | Module for [Go Mysql Server](https://github.com/dolthub/go-mysql-server) |
1616
| [fxjsonapi](fxjsonapi) | Module for [JSON API](https://github.com/google/jsonapi) |
17-
| [fxslack](fxslack) | Module for [Slack](https://api.slack.com/) |
1817
| [fxredis](fxredis) | Module for [Redis](https://redis.io/docs/connect/clients/go/) |
18+
| [fxslack](fxslack) | Module for [Slack](https://api.slack.com/) |
19+
| [fxtestcontainer](fxtestcontainer) | Module for [Testcontainers](https://github.com/testcontainers/testcontainers-go) |
1920

2021
## Contributing
2122

fxtestcontainer/.golangci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
- durationcheck
17+
- errcheck
18+
- errchkjson
19+
- errname
20+
- errorlint
21+
- exhaustive
22+
- forbidigo
23+
- forcetypeassert
24+
- gocognit
25+
- goconst
26+
- gocritic
27+
- gocyclo
28+
- godot
29+
- godox
30+
- gofmt
31+
- goheader
32+
- gomoddirectives
33+
- gomodguard
34+
- goprintffuncname
35+
- gosec
36+
- gosimple
37+
- govet
38+
- grouper
39+
- importas
40+
- ineffassign
41+
- interfacebloat
42+
- loggercheck
43+
- maintidx
44+
- makezero
45+
- misspell
46+
- nestif
47+
- nilerr
48+
- nilnil
49+
- nlreturn
50+
- nolintlint
51+
- nosprintfhostport
52+
- prealloc
53+
- predeclared
54+
- promlinter
55+
- reassign
56+
- staticcheck
57+
- tenv
58+
- thelper
59+
- tparallel
60+
- typecheck
61+
- unconvert
62+
- unparam
63+
- unused
64+
- usestdlibvars
65+
- whitespace

0 commit comments

Comments
 (0)