Skip to content

V1 prototype

V1 prototype #65

Workflow file for this run

name: CI
on:
push:
tags-ignore:
- 'v*'
branches:
- 'master'
pull_request:
workflow_call:
jobs:
ci:
uses: smallstep/workflows/.github/workflows/goCI.yml@main
with:
only-latest-golang: false
run-codeql: true
run-test: false
secrets: inherit
test:
runs-on: ubuntu-latest
env:
DBPASSWORD: ${{ github.sha }}
services:
postgres:
image: postgres:11-alpine
env:
POSTGRES_PASSWORD: ${{ env.DBPASSWORD }}
ports:
- 5432/tcp
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
mysql:
image: mysql:5.7
env:
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/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@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: Test
run: V=1 make ci-test
env:
TEST_POSTGRES_DSN: postgres://postgres:${{ env.DBPASSWORD }}@localhost:${{ job.services.postgres.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