Skip to content

Simplify CI

Simplify CI #107

Workflow file for this run

name: Lint
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
jobs:
lint-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Detect lint-impacting changes
id: filter
uses: dorny/paths-filter@v3
with:
filters: |
should_run:
- '**/*.go'
- 'go.mod'
- 'go.sum'
- '.github/workflows/lint.yml'
- '.golangci.yml'
- '.golangci.yaml'
- '.golangci.toml'
- '.golangci.json'
- name: Set up Go
if: steps.filter.outputs.should_run == 'true'
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: false
- name: golangci-lint
if: steps.filter.outputs.should_run == 'true'
uses: golangci/golangci-lint-action@v7
with:
version: v2.11.4
args: --timeout=5m