diff --git a/.tangled/workflows/clippy.yml b/.tangled/workflows/clippy.yml new file mode 100644 index 0000000..d758533 --- /dev/null +++ b/.tangled/workflows/clippy.yml @@ -0,0 +1,15 @@ +when: + - event: [push] + branch: [main] + - event: [pull_request] + branch: [main] + +engine: nixery + +dependencies: + nixpkgs: + - rustup + +steps: + - name: Clippy (MSRV) + command: cargo clippy -- -D warnings diff --git a/.tangled/workflows/fmt.yml b/.tangled/workflows/fmt.yml new file mode 100644 index 0000000..e774816 --- /dev/null +++ b/.tangled/workflows/fmt.yml @@ -0,0 +1,16 @@ +when: + - event: [push] + branch: [main] + - event: [pull_request] + branch: [main] + +engine: nixery + +dependencies: + nixpkgs: + - rustup + - clang + +steps: + - name: Check formatting + command: cargo fmt --check diff --git a/.tangled/workflows/test.yml b/.tangled/workflows/test.yml new file mode 100644 index 0000000..d4b8ff2 --- /dev/null +++ b/.tangled/workflows/test.yml @@ -0,0 +1,18 @@ +when: + - event: [push] + branch: [main] + - event: [pull_request] + branch: [main] + +engine: nixery + +dependencies: + nixpkgs: + - rustup + - clang + +steps: + - name: Run tests + command: cargo test + - name: Verify working directory is clean + run: git diff --exit-code