Skip to content

ci: Add markdownlint check #978

ci: Add markdownlint check

ci: Add markdownlint check #978

Workflow file for this run

name: Build
on:
push:
branches:
- main
- staging
pull_request:
branches:
- main
- staging
schedule:
- cron: 00 4 * * *
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v18
with:
globs: '**/*.md'
- name: Install latest stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Install latest nightly
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rust-src
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
examples/aya-tool
examples/cgroup-skb-egress
examples/kprobetcp
examples/lsm-nice
examples/tc-egress
examples/xdp-drop
examples/xdp-hello
examples/xdp-log
- uses: taiki-e/install-action@v2
with:
tool: bpf-linker
- name: Set up Python
uses: actions/setup-python@v5
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build docs
run: mkdocs build
- name: Check Examples
run: |
for dir in ./examples/*/ ; do
pushd "${dir}"
echo "Example: ${dir}."
cargo xtask build-ebpf --release
cargo build --release
popd
done