Skip to content

Commit

Permalink
Prototype of the next version
Browse files Browse the repository at this point in the history
  • Loading branch information
azazeal committed Feb 18, 2024
1 parent 67b308c commit acc58c1
Show file tree
Hide file tree
Showing 38 changed files with 4,300 additions and 3,093 deletions.
47 changes: 36 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,39 +20,64 @@ jobs:

test:
runs-on: ubuntu-latest

env:
DBPASSWORD: ${{ github.sha }}

services:
postgres:
image: postgres
image: postgres:11-alpine
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_PASSWORD: ${{ env.DBPASSWORD }}
ports:
- 5432:5432
- 5432/tcp
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
mysql:
image: mysql:5.7
env:
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: password
MYSQL_ROOT_PASSWORD: ${{ env.DBPASSWORD }}
ports:
- 3306/tcp
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
mariadb:
image: mariadb:10.2
env:
MARIADB_ROOT_PASSWORD: ${{ env.DBPASSWORD }}
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
- 3306/tcp
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
strategy:
matrix:
go: [ 'stable', 'oldstable' ]

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
check-latest: true

- name: Test
env:
TEST_POSTGRES_DSN: postgres://postgres:${{ env.DBPASSWORD }}@localhost:${{ job.services.pg.ports['5432'] }}/nosql_test?sslmode=disable
TEST_MYSQL_DSN: root:${{ env.DBPASSWORD }}@tcp(localhost:${{ job.services.mysql.ports['3306'] }})/nosql_test
TEST_MARIADB_DSN: root:${{ env.DBPASSWORD }}@tcp(localhost:${{ job.services.mariadb.ports['3306'] }})/nosql_test
run: V=1 make ci-test
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
*.out

# Vendor directory
vendor/*
vendor/*

# Ignore direnv files
.envrc
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ and BoltDB, but implementations are on the roadmap.

- [ ] Memory
- [x] [BoltDB](https://github.com/etcd-io/bbolt) etcd fork.
- [x] Badger
- [x] Badger (`v1`, `v2`, `v3` & `v4`)
- [x] MariaDB/MySQL
- [x] PostgreSQL
- [ ] Cassandra
Expand Down
Loading

0 comments on commit acc58c1

Please sign in to comment.