generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 6
110 lines (104 loc) · 2.95 KB
/
test.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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: units-test
on: # yamllint disable-line rule:truthy
workflow_call:
jobs:
# unit tests
units:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
# test action works running from the graph
test_ebpf:
runs-on: ubuntu-latest
strategy:
matrix:
ebpf_provider: [libbpf]
steps:
- name: Install mlocate
run: sudo apt-get install -y mlocate
- uses: actions/checkout@v4
- uses: ./
with:
ebpfprovider: ${{matrix.ebpf_provider}}
- name: verify
run: |
./verify.sh ${{matrix.ebpf_provider}}
test_xgboost:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
xgboost_version: 2.0.1
artifact_version: 0.26.0
- name: verify
run: |
./verify.sh xgboost
# test action works running from the graph
test_local_cluster:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- cluster_provider: kind
prometheus_operator_version: v0.13.0
PROMETHEUS_ENABLE: false
GRAFANA_ENABLE: false
TEKTON_ENABLE: false
test_name: kind_basic
- cluster_provider: kind
prometheus_operator_version: v0.13.0
PROMETHEUS_ENABLE: true
GRAFANA_ENABLE: true
TEKTON_ENABLE: true
test_name: kind_with_prometheus_and_tekton
steps:
- uses: actions/checkout@v4
- uses: ./
name: ${{matrix.test_name}}
with:
ebpfprovider: ${{matrix.ebpf_provider}}
cluster_provider: ${{matrix.cluster_provider}}
prometheus_enable: ${{matrix.PROMETHEUS_ENABLE}}
prometheus_operator_version: v0.12.0
grafana_enable: ${{matrix.GRAFANA_ENABLE}}
tekton_enable: ${{matrix.TEKTON_ENABLE}}
kubeconfig_root_dir: /tmp/kubeconfig
- name: verify
run: |
./verify.sh cluster
test_existing_cluster:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# set up k8s cluster
- uses: ./
name: dummy cluster for test
with:
cluster_provider: kind
config_cluster: false
# config cluster
- uses: ./
name: config cluster
with:
cluster_provider: existing
prometheus_enable: true
tekton_enable: true
- name: verify
run: |
./verify.sh cluster
# test if kernel module can be loaded, this is very os and instance specific, ignore if it fails
test_kernel_module:
runs-on: ubuntu-latest
env:
KERNEL_MODULE_NAMES: rapl,intel_rapl_common,intel_rapl_msr
steps:
- uses: actions/checkout@v4
- uses: ./
with:
kernel_module_names: ${{ env.KERNEL_MODULE_NAMES }}}
- name: verify
run: |
./verify.sh modprobe ${{ env.KERNEL_MODULE_NAMES }}