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

feat(test-policy): add policy used to test context aware call. #3036

feat(test-policy): add policy used to test context aware call.

feat(test-policy): add policy used to test context aware call. #3036

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: "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@40156d6074bf731adb169cfb8234954971dbc487 # v1.37.1
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: kubewarden/github-actions/tarpaulin-install@73e92c9cf9059299619e79372b78eb09a5934fa0 # v4.5.11
- 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: 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