File tree Expand file tree Collapse file tree 1 file changed +30
-7
lines changed Expand file tree Collapse file tree 1 file changed +30
-7
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,34 @@ jobs:
5959 go-version : ' 1.24'
6060 cache : true
6161
62- - name : Run golangci-lint
63- uses : golangci/golangci-lint-action@v8
62+ - name : Set up Python
63+ uses : actions/setup-python@v4
6464 with :
65- version : latest
66- args : --timeout=5m
67- skip-cache : true
68- skip-pkg-cache : true
69- skip-build-cache : true
65+ python-version : ' 3.x'
66+
67+ - name : Set up Node.js
68+ uses : actions/setup-node@v4
69+ with :
70+ node-version : ' 20'
71+
72+ - name : Install pre-commit and dependencies
73+ run : |
74+ # Install pre-commit
75+ pip install pre-commit
76+
77+ # Install shellcheck (already available in ubuntu-latest)
78+ which shellcheck || sudo apt-get install -y shellcheck
79+
80+ # Install markdownlint-cli
81+ npm install -g markdownlint-cli
82+
83+ # Install golangci-lint using go install (safer than curl|sh)
84+ go install github.com/golangci/golangci-lint/cmd/[email protected] 85+
86+ - name : Run make lint
87+ run : |
88+ # Ensure golangci-lint is available in PATH for pre-commit
89+ export PATH="$(go env GOPATH)/bin:${PATH}"
90+ which golangci-lint
91+ golangci-lint version
92+ make lint
You can’t perform that action at this time.
0 commit comments