-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
build: # compiles this app in debug mode
cargo build
fix: build # auto-corrects issues
cargo +nightly fix --allow-dirty
cargo clippy --fix --allow-dirty
cargo +nightly fmt
target/debug/rta dprint fmt
target/debug/rta shfmt -f . | xargs target/debug/rta shfmt -w
install: # installs this tool locally for testing
cargo install --path .
help: # shows all available Make commands
cat Makefile | grep '^[^ ]*:' | grep -v '.PHONY' | grep -v '.SILENT:' | grep '#' | grep -v help | sed 's/:.*#/#/' | column -s "#" -t
lint: build # runs all linters
cargo clippy --all-targets --all-features -- --deny=warnings
git diff --check
target/debug/rta actionlint
# target/debug/rta dprint check # this breaks the Windows CI due to linebreak errors
target/debug/rta --optional shellcheck download.sh
setup: # install development dependencies on this computer
rustup toolchain add nightly
rustup component add rustfmt --toolchain nightly
test: unit lint # runs all tests
unit: # runs the unit tests
cargo test
update: # updates the dependencies
cargo install cargo-edit cargo-machete
cargo machete
cargo upgrade
.DEFAULT_GOAL := help
.SILENT: