Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Merge pull request #784 from kubewarden/updatecli_main_9a0d57bc93a1e7… #3070

Merge pull request #784 from kubewarden/updatecli_main_9a0d57bc93a1e7…

Merge pull request #784 from kubewarden/updatecli_main_9a0d57bc93a1e7… #3070

Workflow file for this run

on: [push, pull_request]
name: Continuous integration
env:
# This is required because commands like `cargo check` do not
# read the cargo development dependencies.
# See https://github.com/Arnavion/k8s-openapi/issues/132
K8S_OPENAPI_ENABLED_VERSION: "1.30"
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: "Run cargo check"
run: cargo check
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: "Run cargo test"
run: cargo test --workspace --lib
integration-test:
name: Integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Install kwctl
uses: kubewarden/github-actions/kwctl-installer@847a8b8af7715a709c56426d3d298a90d7a6dad3 # v4.5.13
- name: "Build testing policy"
run: make annotated-policy.wasm
- name: "Run cargo test"
run: cargo test --test '*'
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: "Run cargo fmt"
run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: "Run cargo clippy"
run: cargo clippy --workspace -- -D warnings
spelling:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Spell Check Repo
uses: crate-ci/typos@07d900b8fa1097806b8adb6391b0d3e0ac2fdea7 # v1.39.0
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: kubewarden/github-actions/tarpaulin-install@847a8b8af7715a709c56426d3d298a90d7a6dad3 # v4.5.13
- name: Generate unit-tests coverage
run: make coverage-unit-tests
- name: Upload unit-tests coverage to Codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
with:
name: unit-tests
directory: coverage/unit-tests
flags: unit-tests
verbose: true
- name: Install kwctl
uses: kubewarden/github-actions/kwctl-installer@847a8b8af7715a709c56426d3d298a90d7a6dad3 # v4.5.13
- name: "Build testing policy"
run: make annotated-policy.wasm
- name: Generate integration-tests coverage
run: make coverage-integration-tests
- name: Upload unit-tests coverage to Codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
with:
name: integration-tests
directory: coverage/integration-tests
flags: integration-tests
verbose: true