Skip to content

E2E-Test

E2E-Test #11

Workflow file for this run

name: E2E-Test
on: workflow_dispatch
defaults:
run:
shell: bash
jobs:
run-e2e-test:
name: Run E2E Tests
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Chainsaw
uses: kyverno/[email protected]
- name: Create Kind Cluster
uses: ./.github/actions/create-cluster
with:
kind-version: "v0.18.0"
k8s-version: "v1.27.3"
runtime_tag: "latest"
cluster-name: "test-cluster"
- name: Setup Prometheus Node Exporter
uses: ./.github/actions/deploy-prometheus
- name: Deploy Collector
uses: ./.github/actions/deploy-collector
with:
collector-version: "latest"
DT_API_ENDPOINT: ${{ secrets.DT_API_ENDPOINT }}
DT_API_TOKEN: ${{ secrets.DT_API_TOKEN }}
- name: Run E2E Tests
env:
DT_API_ENDPOINT: ${{ secrets.DT_API_ENDPOINT }}
DT_API_TOKEN: ${{ secrets.DT_API_TOKEN }}
run: |
echo "Running E2E Tests"
chainsaw version
chainsaw test --test-dir ./testbed/chainsaw/ --config ./.chainsaw.yaml