Skip to content

Continuous integration #70

Continuous integration

Continuous integration #70

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.77.2
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
cargo clippy --examples -- -D warnings
- name: Build
run: cargo build --all-targets
- name: Doc
run: cargo doc --no-deps
- name: Light tests
run: cargo test --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
run: cargo test --all -- --ignored