feat(testing): automate PR checks with trace based tests #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Cluster | |
on: pull_request | |
jobs: | |
create-cluster: | |
runs-on: ubuntu-latest | |
env: | |
TRACETEST_LICENSE: ${{ secrets.TRACETEST_ONPREM_TEST_LICENSE }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup KinD | |
uses: helm/kind-action@v1 | |
with: | |
cluster_name: tracetest | |
# install_only: true | |
- name: Test public images | |
run: | | |
kubectl config get-contexts | |
./scripts/setup_kind_cluster.sh --build-deps --install-demo --force-setup | |
helm install cloudagent -n default ./charts/tracetest-agent --set agent.apiKey $AGENT_API_KEY --set agent.environment $AGENT_ENV_ID | |
kubectl wait --for=condition=available --timeout=60s deployment/tracetest-agent | |
sleep 60 | |
kubectl get pods | |
sleep 60 | |
kubectl logs deployment/tt-tracetest-core-api | |
sleep 600 |