Implement derive(CELSchema)
macro for generating cel validation on CRDs
#2796
Workflow file for this run
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: coverage | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- "**.rs" | |
- "**.toml" | |
- "**.yml" | |
jobs: | |
tarpaulin-codecov: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
# tarpaulin is currently broken for Rust 1.83, see #1657 | |
uses: dtolnay/rust-toolchain@1.82.0 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install tarpaulin | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-tarpaulin@0.28.0 | |
- uses: nolar/setup-k3d-k3s@v1 | |
with: | |
version: v1.26 | |
# k3d-kube | |
k3d-name: kube | |
# Used to avoid rate limits when fetching the releases from k3s repo. | |
# Anonymous access is limited to 60 requests / hour / worker | |
# github-token: ${{ secrets.GITHUB_TOKEN }} | |
k3d-args: "-p 10250:10250 --no-rollback --k3s-arg --disable=traefik,servicelb,metrics-server@server:*" | |
- name: Run cargo-tarpaulin | |
run: | | |
# tarpaulin is currently broken for Rust 1.83, see #1657 | |
rustup run 1.82.0 cargo tarpaulin -o xml --skip-clean | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |