Skip to content

(Enhancement) Ginkgo test framework for k8tls #18

(Enhancement) Ginkgo test framework for k8tls

(Enhancement) Ginkgo test framework for k8tls #18

Workflow file for this run

name: ci-test-ginkgo
on:
push:
branches: [main]
paths:
- "src/**"
- "tests/**"
- ".github/workflows/ci-test-ginkgo.yml"
pull_request:
branches: [main]
paths:
- "src/**"
- "tests/**"
- ".github/workflows/ci-test-ginkgo.yml"
jobs:
build:
name: Auto-testing Framework
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "v1.20"
- name: Create k8s Kind Cluster
uses: helm/[email protected]
- name: Test connectivity
run: kubectl get pods -A
- name: Deploy wordpress-mysql
run: kubectl apply -f ./tests/res/wordpress-mysql-dep.yaml
- name: Building k8tls
run: make build
- name: Deploy k8tls
run: |
kubectl apply -f ./tests/res/test-k8tls.yaml
sleep 10
- name: Checking if /tmp can be read
run: ls /home/runner
- name: Check k8tls is completed
run: kubectl get pods -A
- name: Test k8tls using Ginkgo
run: |
# mkdir /tmp/k8tls
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
make
working-directory: ./tests
timeout-minutes: 30