Skip to content

feat: First release #27

feat: First release

feat: First release #27

Workflow file for this run

name: Continuous integration
on:
workflow_dispatch:
pull_request:
schedule:
- cron: "30 16 * * 5"
env:
CARGO_TERM_COLOR: always
CI: true
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- 1.75.0
k8s:
- v1.26
- latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
name: Setup toolchain
with:
toolchain: ${{ matrix.rust }}
components: rustfmt,clippy
- uses: Swatinem/rust-cache@v2
- name: Fmt
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Build
run: cargo build
- name: Light tests
# env:
# RUST_LOG: kube_lease=debug
run: cargo test --lib --all
- uses: nolar/setup-k3d-k3s@v1
with:
version: ${{matrix.k8s}}
k3d-name: kube
github-token: ${{ secrets.GITHUB_TOKEN }}
k3d-args: "--no-lb --no-rollback --k3s-arg --disable=traefik,servicelb,metrics-server@server:*"
- name: Heavy tests
# env:
# RUST_LOG: kube_lease_manager=debug
run: cargo test --lib --all -- --ignored