Skip to content

rpatterns: Make memcursor concurrent safe #83

rpatterns: Make memcursor concurrent safe

rpatterns: Make memcursor concurrent safe #83

Workflow file for this run

name: Go
on:
push:
branches: [ "**" ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
mysql: ['mysql:5.7', 'mysql:latest']
go: ['1.20']
services:
mysql:
image: ${{ matrix.mysql }}
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: example
ports:
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
id: go
- name: Lint
run: make vet
- name: Test
run: make test
env:
DB_TEST_URI: "root:@tcp(localhost:${{ job.services.mysql.ports[3306] }})/"
DB_EXAMPLE_CLIENT_URI: "root@tcp(localhost:${{ job.services.mysql.ports[3306] }})/example"
DB_EXAMPLE_SERVER_URI: "root@tcp(localhost:${{ job.services.mysql.ports[3306] }})/example"