-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (87 loc) · 2.33 KB
/
test.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Test
on:
push:
pull_request:
permissions:
contents: read
concurrency:
# We runs only one job at a time to prevent contention on subnet CIDRs and EKS cluster names.
# This is needed because we share the same AWS account and VPC for all the tests.
group: ${{ github.workflow }}
jobs:
test:
environment: test
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21.3'
check-latest: true
- name: Run tests
run: make test
kindtest:
environment: test
strategy:
matrix:
kind_image:
- "kindest/node:v1.29.8@sha256:d46b7aa29567e93b27f7531d258c372e829d7224b25e3fc6ffdefed12476d3aa"
- "kindest/node:v1.30.4@sha256:976ea815844d5fa93be213437e3ff5754cd599b040946b5cca43ca45c2047114"
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21.3'
check-latest: true
- name: Install cloud-provider-kind
run: make cloud-provider-kind
- name: Run E2E tests on kind
run: make e2e/kindtest
env:
KIND_IMAGE: ${{ matrix.kind_image }}
ekstest:
environment: test
runs-on: ubuntu-latest
# Have enough timeout for `make e2e`
# which requires up to 45 minutes to run.
timeout-minutes: 55
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install terraform
uses: hashicorp/setup-terraform@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21.3'
check-latest: true
- name: Run E2E tests on EKS
run: make e2e/ekstest
golangci:
name: lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21.3'
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59.0
args: -v --timeout=10m