Skip to content

Commit 1cea89a

Browse files
committed
fixup! ci: Use correct custom linter
1 parent b252e1b commit 1cea89a

File tree

1 file changed

+4
-25
lines changed

1 file changed

+4
-25
lines changed

.github/workflows/checks.yml

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -132,37 +132,16 @@ jobs:
132132
with:
133133
enable-cache: true
134134

135-
- name: golangci-lint
136-
env:
137-
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
138-
run: |
139-
devbox run golangci-lint run --config=${{ github.workspace }}/.golangci.yml --output.text.path=stdout ./... | \
140-
devbox run reviewdog -f=golangci-lint -reporter=github-pr-review --fail-level=any
141-
working-directory: ${{ matrix.module }}
142-
143-
lint-api:
144-
runs-on: ubuntu-24.04
145-
permissions:
146-
pull-requests: write
147-
steps:
148-
- name: Check out code
149-
uses: actions/checkout@v4
150-
151-
- name: Install devbox
152-
uses: jetify-com/[email protected]
153-
with:
154-
enable-cache: true
155-
156-
- name: Install kube-api-linter
135+
- name: Install custom golangci-lint
157136
run: devbox run make hack/tools/golangci-lint-kube-api-linter
158137

159-
- name: golangci-lint-kube-api-linter
138+
- name: golangci-lint
160139
env:
161140
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
162141
run: |
163142
${{ github.workspace }}/hack/tools/golangci-lint-kube-api-linter run --config=${{ github.workspace }}/.golangci.yml --output.text.path=stdout ./... | \
164-
devbox run reviewdog -name=kube=api-linter -f=golangci-lint -reporter=github-pr-review --fail-level=any
165-
working-directory: api
143+
devbox run reviewdog -f=golangci-lint -reporter=github-pr-review --fail-level=any
144+
working-directory: ${{ matrix.module }}
166145

167146
lint-gha:
168147
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)