sq/.github/workflows/go.yml
Neil O'Toole 23022f2b7f
Go1.19 compatibility (#104)
* upgraded mattn/go-isatty version because it was importing a incompatible version of golang.org/x/sys/unix

* changed parsing of SQL Server DSN due to changes to url.ParseQuery no longer accepting semicolon

* updated xo/dburl pkg to v0.11.0

* removed dead underscore assignment

* updated GH workflow go action to 1.19
2022-08-08 13:14:42 -06:00

52 lines
985 B
YAML

name: Go
on:
push:
paths-ignore:
- 'README.md'
- 'sq.json'
branches:
- master
pull_request:
paths-ignore:
- 'README.md'
- 'sq.json'
branches:
- master
jobs:
build:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v1
with:
go-version: 1.19
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Cache Go dependencies
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v .
- name: Test
run: go test -short -v ./...