Skip to content

V1 prototype

V1 prototype #59

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
strategy:
matrix:
go: [ 'stable', 'oldstable' ]
steps:
- name: Checkout
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