diff --git a/.tangled/workflows/lint.yml b/.tangled/workflows/lint.yml new file mode 100644 index 0000000..64cf1b4 --- /dev/null +++ b/.tangled/workflows/lint.yml @@ -0,0 +1,31 @@ +when: + - event: ["push", "manual"] + branch: ["main"] + - event: ["pull_request"] + branch: ["main"] + +engine: "nixery" + +dependencies: + nixpkgs: + - cargo + - rustc + - rustfmt + - clippy + - clang + +steps: + - name: "Build" + command: "cargo build" + + - name: "Check" + command: "cargo check --all-targets --all-features" + + - name: "Test" + command: "cargo test --all-features" + + - name: "Format" + command: "cargo fmt --all -- --check" + + - name: "Lint" + command: "cargo clippy --all-targets --all-features -- -D warnings"