Skip to content

ci: pin GitHub Actions to commit SHAs (#211) #247

ci: pin GitHub Actions to commit SHAs (#211)

ci: pin GitHub Actions to commit SHAs (#211) #247

Workflow file for this run

name: Lint
on:
workflow_call:
push:
paths:
- "**.go"
- "go.mod"
- "go.sum"
- ".github/workflows/*.yaml"
- "example/**"
jobs:
lint:
name: Run Go lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
with:
go-version-file: ./go.mod
- name: Install dependencies
run: |
go get -t -v ./...
go install ./...
- name: Format
run: diff -u <(echo -n) <(gofmt -d -s .)
- name: Vet
run: go vet ./...
- name: Lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8
with:
version: latest
only-new-issues: true
skip-cache: true