Skip to content

Bump ikalnytskyi/action-setup-postgres from 4 to 5 (#71) #75

Bump ikalnytskyi/action-setup-postgres from 4 to 5 (#71)

Bump ikalnytskyi/action-setup-postgres from 4 to 5 (#71) #75

# Based on
# - https://github.com/marketplace/actions/setup-go-environment
name: go-test-linux.yaml
on: [push]
env:
SENZING_TOOLS_DATABASE_URL: "sqlite3://na:na@/tmp/sqlite/G2C.db"
jobs:
go-test-linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ["1.21"]
os: [ubuntu-latest]
name: "go test with OS: ${{ matrix.os }}; Go: ${{ matrix.go }}"
services:
postgres:
env:
POSTGRESQL_DATABASE: G2
POSTGRESQL_PASSWORD: senzing
POSTGRESQL_POSTGRES_PASSWORD: postgres
POSTGRESQL_USERNAME: senzing
image: bitnami/postgresql
ports:
- 5432:5432
mssql:
env:
ACCEPT_EULA: Y
MSSQL_PID: Developer
MSSQL_SA_PASSWORD: Passw0rd
image: mcr.microsoft.com/mssql/server
ports:
- 1433:1433
mysql:
env:
MYSQL_DATABASE: G2
MYSQL_PASSWORD: mysql
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: mysql
image: bitnami/mysql
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- run: mkdir /tmp/sqlite
- run: touch /tmp/sqlite/G2C.db
- name: Run go test
run: go test -v -p 1 ./...