Skip to content

Optimize caching and rerun inspections #104

Optimize caching and rerun inspections

Optimize caching and rerun inspections #104

Workflow file for this run

name: Lint
on:
push:
pull_request:
types:
- opened
- reopened
permissions:
contents: read
jobs:
golangci:
name: "golangci-lint"
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
cache-dependency-path: |
go.sum
- name: Install Ubuntu dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt install libpam0g-dev
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60