Skip to content

Commit 8eda21d

Browse files
authored
Merge pull request #196 from pfeifferj/feat-make-lint-in-ci
feat: use make lint in ci
2 parents 833c79c + a8f70d8 commit 8eda21d

File tree

1 file changed

+30
-7
lines changed

1 file changed

+30
-7
lines changed

.github/workflows/go-test.yaml

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)