Skip to content

Added jq support to yaml #362

Added jq support to yaml

Added jq support to yaml #362

Workflow file for this run

name: Go
on: [push]
jobs:
build:
strategy:
matrix:
go-version: [ '1.18', '1.19', '1.20' ]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Run tests
run: make test
- name: Go coverage report
uses: ncruces/go-coverage-report@v0.1.3
if: |
matrix.platform == 'ubuntu-latest' &&
github.event_name == 'push'
continue-on-error: true
dbtest:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: trdsql_test
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --locale=C"
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
mysql:
image: mysql:8.0
ports:
- "3307:3306"
env:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_DATABASE: trdsql_test
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Install Go
if: success()
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- name: Run tests
run: make test
env:
SESSION_PG_TEST_DSN: "host=localhost user=postgres password=postgres dbname=trdsql_test sslmode=disable"
SESSION_MY_TEST_DSN: "root:root@tcp(localhost:3307)/trdsql_test"