Skip to content

ci(deps): bump golangci/golangci-lint-action from 3 to 4 #119

ci(deps): bump golangci/golangci-lint-action from 3 to 4

ci(deps): bump golangci/golangci-lint-action from 3 to 4 #119

name: Static analysis
on:
workflow_dispatch:
pull_request:
branches:
- 'main'
jobs:
pre-commit:
name: pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: cloudposse/github-action-pre-commit@v3
lint:
name: lint
permissions:
statuses: write
runs-on: ubuntu-latest
steps:
- 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: Load the linter configuration
# Read the configuration file and exclude the comments.
run: sed '/^\s*#/d' .github/super-linter.env >> "${GITHUB_ENV}"
- name: Lint the code base
uses: github/super-linter/slim@v5
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#####
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ^1.19
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest