Skip to content

fix ci testing with kind #32

fix ci testing with kind

fix ci testing with kind #32

Workflow file for this run

# Reference: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: Changes on 'main' branch
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
qa:
name: Quality Assurance
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.74"
components: clippy
- name: Cache cargo output
uses: Swatinem/rust-cache@v2
with:
cache-directories: third-party
- name: Run clippy
run: cargo clippy
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.8.0
with:
cluster_name: app-testing
config: tests/kind_config.yml
- name: Create k8s test resources
run: |
kubectl apply -f tests/k8s_test_namespaces.yml
sleep 1
kubectl apply -f tests/k8s_test_resources.yml
kubectl wait --for=condition=Ready --timeout=60s --all pods --all-namespaces
- name: Run tests
run: cargo test