We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a97731 commit 7a2f36cCopy full SHA for 7a2f36c
.github/workflows/lint.yml
@@ -0,0 +1,21 @@
1
+name: Lint
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
9
10
+ workflow_dispatch:
11
12
+jobs:
13
+ lint:
14
+ name: Lint
15
+ runs-on: ubuntu-24.04
16
+ steps:
17
+ - name: Check out code
18
+ uses: actions/checkout@v4
19
20
+ - name: Run lint
21
+ run: make lint
hack/lint.sh
@@ -10,6 +10,9 @@ if [ "$#" -ne 1 ]; then
fi
+# Create cache directory if it doesn't exist
+mkdir -p ${HOME}/.cache/golangci-lint
$1 run --security-opt label=disable --rm \
-v "${HOME}"/.cache/golangci-lint:/cache -e GOLANGCI_LINT_CACHE=/cache \
-v "$(pwd)":/app -w /app -e GO111MODULE=on docker.io/golangci/golangci-lint:"${VERSION}" \
0 commit comments