-
Notifications
You must be signed in to change notification settings - Fork 15
68 lines (67 loc) · 1.68 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
name: Test
on: push
jobs:
unit:
name: Unit tests
runs-on: ubuntu-20.04
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: '1.20'
- name: Checkout
uses: actions/checkout@v2
- name: Restore cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Run tests
run: |
make run/unit-tests
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
integration:
name: Integration tests
runs-on: ubuntu-20.04
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: '1.20'
- name: Checkout
uses: actions/checkout@v2
- name: Restore cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Run tests
run: |
make run/integration-tests
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
runtime-integration:
name: Runtime Integration tests
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
k3s-version: [v1.19.11, v1.20.7, v1.21.1]
env:
K3S_VERSION: ${{ matrix.k3s-version }}
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: '1.20'
- name: Checkout
uses: actions/checkout@v2
- name: Restore cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Run tests
run: |
make run/runtime-integration-tests