name: "ci" on: push: branches: ["main"] pull_request: branches: ["main"] env: CARGO_TERM_COLOR: "always" jobs: ci: runs-on: "ubuntu-latest" steps: - uses: "actions/checkout@v4" - uses: "dtolnay/rust-toolchain@stable" with: components: "clippy, rustfmt" - run: "rustc --version" - run: "cargo build --verbose" - run: "cargo test --verbose" - run: "cargo clippy --verbose -- -D warnings" - run: "cargo fmt -- --check" lint-markdown: runs-on: "ubuntu-latest" steps: - uses: "actions/checkout@v4" - uses: "DavidAnson/markdownlint-cli2-action@v14" with: globs: "**/*.md" config: ".markdownlint-cli2.jsonc" lint-commit: runs-on: "ubuntu-latest" steps: - uses: "actions/checkout@v4" - uses: "wagoid/commitlint-github-action@v5"