55 push :
66 branches :
77 - main
8+ - release/*
89 pull_request :
910 paths :
10- - " npm/**"
11- - " github/**"
12- - " test/**"
11+ - ' npm/**'
12+ - ' .github/**'
1313 schedule :
1414 # run once a day at midnight
15- - cron : " 0 0 * * *"
15+ - cron : ' 0 0 * * *'
1616
1717jobs :
1818 cyclonus-test :
@@ -22,35 +22,33 @@ jobs:
2222 # run cyclonus tests in parallel for NPM with the given ConfigMaps
2323 profile :
2424 [
25- v1-default.yaml,
26- v1-place-azure-chain-first.yaml,
27- v2-default.yaml,
2825 v2-apply-on-need.yaml,
29- v2-place-azure-after-kube-services.yaml,
26+ v2-background.yaml,
27+ v2-foreground.yaml,
28+ v2-place-first.yaml,
3029 ]
3130 steps :
3231 - name : Checkout
3332 uses : actions/checkout@v4
3433
3534 - uses : actions/setup-go@v5
3635 with :
37- go-version : " ^1.22 "
36+ go-version : ' ^1.23 '
3837
3938 - name : Setup Kind
40- uses : engineerd/setup- kind@v0.5.0
39+ uses : helm/ kind-action@v1
4140 with :
42- version : " v0.11.1"
41+ version : " v0.22.0"
42+ kubectl_version : " v1.27.7"
4343 config : ./test/kind/kind.yaml
44- name : npm-kind
44+ cluster_name : npm-kind
4545
4646 - name : Check Kind
4747 run : |
4848 kubectl get po -owide -A
49-
5049 - name : Make NPM image
5150 run : |
5251 make npm-image NPM_PLATFORM_TAG=cyclonus PLATFORM=linux/amd64 CONTAINER_BUILDER=docker BUILDX_ACTION='--load'
53-
5452 - name : Install Azure NPM
5553 # set the ConfigMap based on the build matrix
5654 # currently have to restart the daemonset because changing the ConfigMap doesn't restart NPM
@@ -61,13 +59,11 @@ jobs:
6159 echo "Applying profile: ${{ matrix.profile }}"
6260 kubectl apply -f ./npm/profiles/${{ matrix.profile }}
6361 kubectl rollout restart ds azure-npm -n kube-system
64-
6562 - name : Check Cluster Components
6663 run : |
6764 sleep 10
6865 kubectl get po -owide -A
6966 kubectl describe ds azure-npm -n kube-system
70-
7167 - name : Run Cyclonus network policy test
7268 run : make test-cyclonus
7369
@@ -76,12 +72,11 @@ jobs:
7672 run : |
7773 kubectl logs -n kube-system -l k8s-app=azure-npm --tail -1 --prefix > npm-logs_${{ matrix.profile }}.txt
7874 mv ./test/cyclonus/cyclonus-test.txt ./cyclonus-test_${{ matrix.profile }}.txt
79-
80- - name : " Upload Logs"
75+ - name : ' Upload Logs'
8176 uses : actions/upload-artifact@v4
8277 if : always()
8378 with :
84- name : logs
79+ name : logs-${{ matrix.profile }}
8580 path : |
8681 ./npm-logs_${{ matrix.profile }}.txt
8782 ./cyclonus-test_${{ matrix.profile }}.txt
0 commit comments