Skip to content

Use custom sql.Scanner and driver.Valuer if exist #9

Use custom sql.Scanner and driver.Valuer if exist

Use custom sql.Scanner and driver.Valuer if exist #9

Workflow file for this run

name: staticcheck
env:
GO_VERSION: "1.20"
on:
pull_request:
push:
branches:
- master
- main
permissions:
contents: read
jobs:
staticcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: staticcheck ./...