Skip to content

feat: add kubernetes option #12

feat: add kubernetes option

feat: add kubernetes option #12

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Run unit tests
run: cargo test --lib
integration:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
k8s: [v1.25, latest]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: nolar/setup-k3d-k3s@v1
with:
version: ${{matrix.k8s}}
k3d-name: kube
k3d-args: "--no-lb --no-rollback --k3s-arg --disable=traefik,servicelb,metrics-server@server:*"
- name: Build
run: cargo build
- name: Install CRD
run: kubectl apply -f kubernetes/crd.yaml
- name: Run integration tests
run: cargo test --lib -- --ignored