Skip to content

Commit

Permalink
webauthn/ci: upgrade golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
calebdoxsey committed Dec 14, 2023
1 parent 9e86f43 commit ecfb1ef
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/golangci-lint.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
name: golangci-lint
name: Lint
permissions:
contents: read
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
pull_request: {}

jobs:
golangci:
name: lint
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0

- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.21.x
cache: false

- name: Lint
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc
- uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc
with:
version: v1.55
args: --timeout=10m
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.PHONY: lint
lint:
@echo "@==> $@"
@VERSION=$$(go run github.com/mikefarah/yq/[email protected] '.jobs.lint.steps[] | select(.uses == "golangci/golangci-lint-action*") | .with.version' .github/workflows/lint.yml) && \
go run github.com/golangci/golangci-lint/cmd/golangci-lint@$$VERSION run ./...

0 comments on commit ecfb1ef

Please sign in to comment.