feat: add kubernetes option #12
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: 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 |