Skip to content

chore: add gci/dogsled/gosec/errcheckl linters #219

chore: add gci/dogsled/gosec/errcheckl linters

chore: add gci/dogsled/gosec/errcheckl linters #219

Workflow file for this run

name: Lint
on:
push:
tags:
- v*
branches:
- main
pull_request:
permissions:
contents: read
concurrency:
group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run shellcheck
run: make lint-shell
- name: Run shfmt
run: docker run --rm -v $(pwd):/mnt -w /mnt mvdan/shfmt:v3.6.0 -l -d -i 2 .