Skip to content

internal/provider/connection: fix lint warnings #216

internal/provider/connection: fix lint warnings

internal/provider/connection: fix lint warnings #216

Workflow file for this run

name: Go
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
lint:
runs-on: ubuntu-latest
name: lint
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- run: go build -v ./...
# TODO(rjeczalik): Remove (#104)
- uses: scylladb/[email protected]
with:
goimports-path: './'
# TODO(rjeczalik): Remove (#104)
- uses: scylladb/[email protected]
with:
gofmt-path: './'
gofmt-flags: '-l -d'
- uses: golangci/golangci-lint-action@v6
with:
version: v1.56.2
- run: go test -v -race ./...
test-build:
strategy:
matrix:
go: [ "stable" ]
os: [ macos-latest, windows-latest, ubuntu-latest ]
name: test-build
needs: lint
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- run: |
go build -v ./...
go test -v -race ./...