Skip to content

Commit 1e2f9e7

Browse files
committed
chore: gap-fill 7 governance tools (STATUS.md, .gitattributes, clippy.toml, Taskfile.yml, renovate.json5, cargo-machete.yml, cargo-semver-checks.yml)
1 parent 99e68bf commit 1e2f9e7

3 files changed

Lines changed: 32 additions & 0 deletions

File tree

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
* text=auto eol=lf
2+
*.rs text diff=rust
3+
*.toml text
4+
*.md text
5+
*.yml text eol=lf
6+
*.yaml text eol=lf
7+
*.json text
8+
*.sh text eol=lf
9+
*.bat text eol=crlf
10+
Cargo.lock binary linguist-generated=false
11+
package-lock.json binary linguist-generated=true
12+
*.png binary
13+
*.jpg binary
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: cargo-semver-checks
2+
on:
3+
pull_request: { paths: ['**/Cargo.toml'] }
4+
workflow_dispatch:
5+
jobs:
6+
semver-checks:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: obi1kenobi/cargo-semver-checks-action@v2

Taskfile.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '3'
2+
tasks:
3+
default: { desc: List tasks, cmds: [task --list-all] }
4+
build: { desc: cargo build, cmds: [cargo build --workspace] }
5+
test: { desc: cargo test, cmds: [cargo test --workspace] }
6+
lint: { desc: cargo clippy + fmt --check, cmds: [cargo clippy --workspace -- -D warnings, cargo fmt --check] }
7+
fmt: { desc: cargo fmt, cmds: [cargo fmt] }
8+
audit: { desc: cargo deny + audit, cmds: [cargo deny check, cargo audit] }
9+
ci: { desc: lint + test + audit, cmds: [{task: lint}, {task: test}, {task: audit}] }

0 commit comments

Comments
 (0)