From ec518814037c10da45b71d5382ec6e74a9b82cad Mon Sep 17 00:00:00 2001 From: Dave Tucker Date: Tue, 19 Dec 2023 14:42:04 +0000 Subject: [PATCH] ci: Add doctests to workflow Signed-off-by: Dave Tucker --- .github/workflows/ci.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a9f3d16..50eb5138 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - name: Check C formatting run: git ls-files -- '*.c' '*.h' | xargs clang-format --dry-run --Werror - + - name: Check Markdown uses: DavidAnson/markdownlint-cli2-action@v14 @@ -111,6 +111,20 @@ jobs: --exclude integration-test \ --workspace + - name: Doctests + env: + RUST_BACKTRACE: full + run: | + set -euxo pipefail + cargo hack test --doc --feature-powerset \ + --exclude aya-bpf \ + --exclude aya-bpf-bindings \ + --exclude aya-log-ebpf \ + --exclude init \ + --exclude integration-ebpf \ + --exclude integration-test \ + --workspace + build-test-aya-bpf: strategy: fail-fast: false @@ -149,6 +163,17 @@ jobs: --target ${{ matrix.target }} \ -Z build-std=core + - name: Test + env: + CARGO_CFG_BPF_TARGET_ARCH: ${{ matrix.arch }} + RUST_BACKTRACE: full + run: | + set -euxo pipefail + cargo hack test --doc \ + --package aya-bpf \ + --package aya-log-ebpf \ + --feature-powerset + run-integration-test: strategy: fail-fast: false