This repository has been archived by the owner on Oct 2, 2022. It is now read-only.
generated from ContainerSSH/library-template
62 lines (62 loc) · 1.67 KB
/
tests.yml
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
name: Tests
on:
push:
pull_request:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
needs:
- test_1_18
- test_1_19
- test_1_20
steps:
- run: "echo 'All tests complete'"
test_1_18:
name: Run tests (k8s 1.18)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Set up KinD
uses: engineerd/setup-kind@v0.5.0
with:
image: kindest/node:v1.18.8@sha256:f4bcc97a0ad6e7abaf3f643d890add7efe6ee4ab90baeb374b4f41a4c95567eb
- name: Run go tests
run: go test -cover -p 1 -v ./...
test_1_19:
name: Run tests (k8s 1.19)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Set up KinD
uses: engineerd/setup-kind@v0.5.0
with:
image: kindest/node:v1.19.1@sha256:98cf5288864662e37115e362b23e4369c8c4a408f99cbc06e58ac30ddc721600
- name: Run go tests
run: go test -cover -p 1 -v ./...
test_1_20:
name: Run tests (k8s 1.20)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Set up KinD
uses: engineerd/setup-kind@v0.5.0
with:
image: kindest/node:v1.20.0@sha256:b40ecf8bcb188f6a0d0f5d406089c48588b75edc112c6f635d26be5de1c89040
- name: Run go tests
run: go test -cover -p 1 -v ./...