🚀 feature: add bbolt implementation (#321)

* Update CI/CD tests.

* Add Bbolt db.

* Add README.

* Add actions.

* Drop go1.14 & go1.15 for bbolt.

* Add support for go1.16

* Update config.go

Co-authored-by: wernerr <rene.werner@verivox.com>
This commit is contained in:
M. Efe Çetin
2022-02-10 17:45:13 +03:00
committed by GitHub
parent 315f14ce58
commit cc5ccf062b
11 changed files with 436 additions and 1 deletions

View File

@@ -112,6 +112,15 @@ updates:
dependency_name: "gofiber/fiber/*"
- package-ecosystem: "gomod"
directory: "/s3/" # Location of package manifests
default_labels:
- "🤖 Dependencies"
schedule:
interval: "daily"
automerged_updates:
- match:
dependency_name: "gofiber/fiber/*"
- package-ecosystem: "gomod"
directory: "/bbolt/" # Location of package manifests
default_labels:
- "🤖 Dependencies"
schedule:

View File

@@ -16,7 +16,7 @@ jobs:
go get -u github.com/securego/gosec/v2/cmd/gosec
- name: Run Gosec (root)
working-directory: .
run: "`go env GOPATH`/bin/gosec -exclude-dir=internal -exclude-dir=arangodb -exclude-dir=badger -exclude-dir=dynamodb -exclude-dir=memcache -exclude-dir=memory -exclude-dir=mongodb -exclude-dir=mysql -exclude-dir=postgres -exclude-dir=redis -exclude-dir=ristretto -exclude-dir=sqlite3 -exclude-dir=s3 ./..."
run: "`go env GOPATH`/bin/gosec -exclude-dir=internal -exclude-dir=arangodb -exclude-dir=badger -exclude-dir=dynamodb -exclude-dir=memcache -exclude-dir=memory -exclude-dir=mongodb -exclude-dir=mysql -exclude-dir=postgres -exclude-dir=redis -exclude-dir=ristretto -exclude-dir=sqlite3 -exclude-dir=s3 -exclude-dir=bbolt ./..."
# -----
- name: Run Gosec (arangodb)
working-directory: ./arangodb
@@ -66,3 +66,7 @@ jobs:
working-directory: ./ristretto
run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..."
# -----
- name: Run Gosec (bbolt)
working-directory: ./bbolt
run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..."
# -----

24
.github/workflows/test-bbolt.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
'on':
- push
- pull_request
name: Bbolt
jobs:
Tests:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- 1.16.x
- 1.17.x
platform:
- ubuntu-latest
- windows-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: '${{ matrix.go-version }}'
- name: Fetch Repository
uses: actions/checkout@v2
- name: Run Test
run: cd ./bbolt && go mod tidy && go test ./... -v -race