Skip to content

chore(deps): bump golangci/golangci-lint-action from 6 to 7 #230

chore(deps): bump golangci/golangci-lint-action from 6 to 7

chore(deps): bump golangci/golangci-lint-action from 6 to 7 #230

Workflow file for this run

name: Lint
on:
push:
tags:
- v*
branches:
- master
pull_request:
workflow_dispatch:
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Lint
uses: golangci/golangci-lint-action@v7
with:
version: latest
args: --timeout 10m
# Check if there are any dirty changes after go mod tidy
check-mod:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Download dependencies
run: go mod download && go mod tidy
- name: Go generate
run: go generate ./...
- name: Check git diff
run: git diff --exit-code