-
Notifications
You must be signed in to change notification settings - Fork 4.4k
45 lines (38 loc) · 1.22 KB
/
vpa-test.yaml
File metadata and controls
45 lines (38 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Vertical Pod Autoscaler
on:
push:
paths:
- 'vertical-pod-autoscaler/**'
- '!vertical-pod-autoscaler/**/*.md'
pull_request:
paths:
- 'vertical-pod-autoscaler/**'
- '!vertical-pod-autoscaler/**/*.md'
env:
GOPATH: ${{ github.workspace }}/go
permissions:
contents: read
checks: write
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: ${{ env.GOPATH }}/src/k8s.io/autoscaler
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: '${{ env.GOPATH}}/src/k8s.io/autoscaler/vertical-pod-autoscaler/go.mod'
cache-dependency-path: |
${{ env.GOPATH}}/src/k8s.io/autoscaler/vertical-pod-autoscaler/go.sum
${{ env.GOPATH}}/src/k8s.io/autoscaler/vertical-pod-autoscaler/e2e/go.sum
- name: Apt-get
run: sudo apt-get install libseccomp-dev -qq
- name: Test
working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler
run: hack/go-unit-tests-vpa.sh
env:
GO111MODULE: auto
PROJECT_NAMES: ""