Skip to content

Commit c929efa

Browse files
committed
Move golangci-lint for VPA to its own job
1 parent 804e189 commit c929efa

File tree

2 files changed

+34
-6
lines changed

2 files changed

+34
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ jobs:
4343
env:
4444
GO111MODULE: auto
4545

46-
- name: golangci-lint - vertical-pod-autoscaler
47-
uses: golangci/golangci-lint-action@v8
48-
with:
49-
args: --timeout=30m
50-
working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler/vertical-pod-autoscaler
51-
5246
- name: Test
5347
working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler
5448
run: hack/for-go-proj.sh test
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Tests
2+
3+
on:
4+
- push:
5+
paths:
6+
- 'vertical-pod-autoscaler/**'
7+
- pull_request:
8+
paths:
9+
- 'vertical-pod-autoscaler/**'
10+
11+
env:
12+
GOPATH: ${{ github.workspace }}/go
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
golangci:
19+
name: lint
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v5
23+
- uses: actions/setup-go@v6
24+
with:
25+
go-version: '1.25.0'
26+
cache-dependency-path: |
27+
${{ env.GOPATH}}/src/k8s.io/autoscaler/vertical-pod-autoscaler/go.sum
28+
${{ env.GOPATH}}/src/k8s.io/autoscaler/vertical-pod-autoscaler/e2e/go.sum
29+
30+
- name: golangci-lint - vertical-pod-autoscaler
31+
uses: golangci/golangci-lint-action@v8
32+
with:
33+
args: --timeout=30m
34+
working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler/vertical-pod-autoscaler

0 commit comments

Comments
 (0)