forked from kubearmor/kubearmor-client
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 959 Bytes
/
ci-ginkgo-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
name: ci-ginkgo
on:
push:
branches: [main]
pull_request:
branches: [main]
# Declare default permissions as read only.
permissions: read-all
jobs:
ginkgo-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "v1.21"
- name: Create k8s Kind Cluster
uses: helm/[email protected]
- name: Test connectivity
run: kubectl get no
- name: Deploy wordpress application
run: kubectl apply -f ./tests/recommend/res/wordpress-mysql-deployment.yaml
- name: Wait for pods
run: kubectl -n wordpress-mysql wait --for=condition=ready pod --all --timeout=5m
- name: Test kArmor recommend using Ginkgo
run: |
make install
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
make recommend -C tests/
timeout-minutes: 30