Disable staticcheck in golangci and add explicit staticcheck on different platforms with merge. #828
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pr-validation | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.21' | |
- name: Run tests against Linux SQL | |
run: | | |
go version | |
cd cmd/sqlcmd | |
go get -d | |
go build . | |
export SQLCMDPASSWORD=$(date +%s|sha256sum|base64|head -c 32) | |
export SQLCMDUSER=sa | |
docker run -m 2GB -e ACCEPT_EULA=1 -d --name sql2017 -p:1433:1433 -e SA_PASSWORD=$SQLCMDPASSWORD mcr.microsoft.com/mssql/server:2017-latest | |
cd ../.. | |
go test -v ./... |