Skip to content

build: pin lint tooling through the lockfiles (#497) #38

build: pin lint tooling through the lockfiles (#497)

build: pin lint tooling through the lockfiles (#497) #38

name: Go SDK PostgreSQL Adapter CI
on:
push:
branches: [main]
paths:
- .github/workflows/ci-sdk-go-postgres.yaml
- schema/**
- sdk/go/**/*.go
- sdk/go/stores/postgres/**
pull_request:
branches: [main]
paths:
- .github/workflows/ci-sdk-go-postgres.yaml
- schema/**
- sdk/go/**/*.go
- sdk/go/stores/postgres/**
workflow_dispatch:
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: sdk/go/stores/postgres/go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
with:
version: v2.10.1
working-directory: sdk/go/stores/postgres
- name: Check licenses
working-directory: sdk/go/stores/postgres
run: make check-licenses
- name: Check NOTICE
working-directory: sdk/go/stores/postgres
run: make check-notice
test:
name: Test
needs: [lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: sdk/go/stores/postgres/go.mod
- name: Test
working-directory: sdk/go/stores/postgres
run: make test