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 7a5ff99
Show file tree
Hide file tree
Showing 39 changed files with 4,433 additions and 3,091 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,39 +20,51 @@ 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: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
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
Loading

0 comments on commit 7a5ff99

Please sign in to comment.