Skip to content

Merge pull request #284 from vgarvardt/chore/linter-issues-example #341

Merge pull request #284 from vgarvardt/chore/linter-issues-example

Merge pull request #284 from vgarvardt/chore/linter-issues-example #341

Workflow file for this run

---
name: "Lint"
concurrency:
group: '${{ github.workflow }}-${{ github.head_ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
on:
push:
branches: [ master ]
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out code
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v6
env:
VALIDATE_ALL_CODEBASE: ${{ github.event_name != 'pull_request' }}
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# go validator works pretty bad in super-linter, we'll use the original one
VALIDATE_GO: false
# do not validate SQL - linters are pretty useless in case of this library,
# and the functionality is tested using integration tests
VALIDATE_SQL: false
VALIDATE_SQLFLUFF: false
VALIDATE_CHECKOV: false
- name: Setup dependencies
uses: ./.github/actions/setup-deps
with:
go-version: '1.20'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Lint Golang
uses: golangci/golangci-lint-action@v6
with:
only-new-issues: ${{ github.event_name == 'pull_request' }}
args: >
--config=./.github/linters/.golangci.yml
codespell:
name: Check spelling
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@v2