Skip to content

Commit ff8aecb

Browse files
authored
Merge pull request #8754 from jackfrancis/ca-ci-1.34
[cluster-autoscaler-1.34] GHA config
2 parents a76e813 + 0336f2e commit ff8aecb

File tree

4 files changed

+46
-116
lines changed

4 files changed

+46
-116
lines changed

.github/workflows/ca-test.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Cluster Autoscaler
2+
3+
on:
4+
push:
5+
paths:
6+
- 'cluster-autoscaler/**'
7+
pull_request:
8+
paths:
9+
- 'cluster-autoscaler/**'
10+
11+
env:
12+
GOPATH: ${{ github.workspace }}/go
13+
14+
permissions:
15+
contents: read
16+
checks: write
17+
18+
jobs:
19+
test:
20+
name: test
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/[email protected]
24+
with:
25+
path: ${{ env.GOPATH }}/src/k8s.io/autoscaler
26+
27+
- name: Set up Go
28+
uses: actions/[email protected]
29+
with:
30+
go-version: '1.24.0'
31+
cache-dependency-path: |
32+
${{ env.GOPATH}}/src/k8s.io/autoscaler/cluster-autoscaler/go.sum
33+
34+
- name: Apt-get
35+
run: sudo apt-get install libseccomp-dev -qq
36+
37+
- name: Test
38+
working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler
39+
run: hack/for-go-proj.sh cluster-autoscaler
40+
env:
41+
GO111MODULE: auto
42+
PROJECT_NAMES: ""

.github/workflows/pr.yaml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/ci.yaml renamed to .github/workflows/verify.yaml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: Verify Go
22

33
on:
44
- push
@@ -12,7 +12,8 @@ permissions:
1212
checks: write
1313

1414
jobs:
15-
test-and-verify:
15+
verify:
16+
name: verify
1617
runs-on: ubuntu-latest
1718
steps:
1819
- uses: actions/[email protected]
@@ -41,16 +42,4 @@ jobs:
4142
working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler
4243
run: hack/verify-all.sh -v
4344
env:
44-
GO111MODULE: auto
45-
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-
52-
- name: Test
53-
working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler
54-
run: hack/for-go-proj.sh test
55-
env:
56-
GO111MODULE: auto
45+
GO111MODULE: auto

0 commit comments

Comments
 (0)