5
5
push :
6
6
branches :
7
7
- main
8
+ - release/*
8
9
pull_request :
9
10
paths :
10
- - " npm/**"
11
- - " github/**"
12
- - " test/**"
11
+ - ' npm/**'
12
+ - ' .github/**'
13
13
schedule :
14
14
# run once a day at midnight
15
- - cron : " 0 0 * * *"
15
+ - cron : ' 0 0 * * *'
16
16
17
17
jobs :
18
18
cyclonus-test :
@@ -30,27 +30,26 @@ jobs:
30
30
]
31
31
steps :
32
32
- name : Checkout
33
- uses : actions/checkout@v3
33
+ uses : actions/checkout@v4
34
34
35
- - uses : actions/setup-go@v4
35
+ - uses : actions/setup-go@v5
36
36
with :
37
- go-version : " ^1.22 "
37
+ go-version : ' ^1.23 '
38
38
39
39
- name : Setup Kind
40
- uses : engineerd/setup- kind@v0.5.0
40
+ uses : helm/ kind-action@v1
41
41
with :
42
- version : " v0.11.1"
42
+ version : " v0.22.0"
43
+ kubectl_version : " v1.27.7"
43
44
config : ./test/kind/kind.yaml
44
- name : npm-kind
45
+ cluster_name : npm-kind
45
46
46
47
- name : Check Kind
47
48
run : |
48
49
kubectl get po -owide -A
49
-
50
50
- name : Make NPM image
51
51
run : |
52
52
make npm-image NPM_PLATFORM_TAG=cyclonus PLATFORM=linux/amd64 CONTAINER_BUILDER=docker BUILDX_ACTION='--load'
53
-
54
53
- name : Install Azure NPM
55
54
# set the ConfigMap based on the build matrix
56
55
# currently have to restart the daemonset because changing the ConfigMap doesn't restart NPM
@@ -61,13 +60,11 @@ jobs:
61
60
echo "Applying profile: ${{ matrix.profile }}"
62
61
kubectl apply -f ./npm/profiles/${{ matrix.profile }}
63
62
kubectl rollout restart ds azure-npm -n kube-system
64
-
65
63
- name : Check Cluster Components
66
64
run : |
67
65
sleep 10
68
66
kubectl get po -owide -A
69
67
kubectl describe ds azure-npm -n kube-system
70
-
71
68
- name : Run Cyclonus network policy test
72
69
run : make test-cyclonus
73
70
@@ -76,12 +73,11 @@ jobs:
76
73
run : |
77
74
kubectl logs -n kube-system -l k8s-app=azure-npm --tail -1 --prefix > npm-logs_${{ matrix.profile }}.txt
78
75
mv ./test/cyclonus/cyclonus-test.txt ./cyclonus-test_${{ matrix.profile }}.txt
79
-
80
- - name : " Upload Logs"
81
- uses : actions/upload-artifact@v3
76
+ - name : ' Upload Logs'
77
+ uses : actions/upload-artifact@v4
82
78
if : always()
83
79
with :
84
- name : logs
80
+ name : logs-${{ matrix.profile }}
85
81
path : |
86
82
./npm-logs_${{ matrix.profile }}.txt
87
83
./cyclonus-test_${{ matrix.profile }}.txt
0 commit comments