automation_rs/.git-hooks/pre-commit
Dreaded_X 9f9b8eb2dd
All checks were successful
Build and deploy automation_rs / Build automation_rs (push) Successful in 4m28s
Build and deploy automation_rs / Build Docker image (push) Successful in 1m17s
Build and deploy automation_rs / Deploy Docker container (push) Has been skipped
Make sure the generated lua definitions are up to date
2024-05-05 01:48:17 +02:00

17 lines
690 B
Bash
Executable File

#!/bin/sh
set -o nounset # Fail on use of unset variable.
set -o errexit # Exit on command failure.
set -o pipefail # Exit on failure of any command in a pipeline.
set -o errtrace # Trap errors in functions and subshells.
set -o noglob # Disable filename expansion (globbing),
# since it could otherwise happen during
# path splitting.
shopt -s inherit_errexit # Inherit the errexit option status in subshells.
set -x
cargo run --bin generate_definitions > ./definitions/generated.lua
git update-index --refresh
cargo clippy --all-targets --all -- -D warnings
cargo fmt -- --check