ci: linting
This commit is contained in:
@@ -13,11 +13,6 @@ repos:
|
||||
hooks:
|
||||
- id: shell-lint
|
||||
args: [--external-sources]
|
||||
- repo: https://github.com/adrienverge/yamllint
|
||||
rev: v1.37.0
|
||||
hooks:
|
||||
- id: yamllint
|
||||
args: ['-c', '.lint/yamllint/.yamllint']
|
||||
- repo: https://github.com/rhysd/actionlint
|
||||
rev: v1.7.7
|
||||
hooks:
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
pre-commit 4.2.0
|
||||
shellcheck 0.10.0
|
||||
|
||||
2
Makefile
2
Makefile
@@ -21,4 +21,4 @@ asdf-plugins: ## Install asdf plugins
|
||||
asdf-install: asdf-plugins ## Install tools with asdf
|
||||
#
|
||||
# Install tools via asdf.
|
||||
@asdf install
|
||||
@asdf install
|
||||
|
||||
@@ -42,8 +42,11 @@ tar -xzf /tmp/asdf.tar.gz -C "$INSTALL_DIR"
|
||||
echo "🧹 Cleaning up..."
|
||||
rm /tmp/asdf.tar.gz
|
||||
|
||||
# shellcheck disable=SC2016
|
||||
add_line_to_file_if_not_exists "$HOME/.bashrc" 'export PATH="$HOME/.asdf:$PATH"'
|
||||
# shellcheck disable=SC2016
|
||||
add_line_to_file_if_not_exists "$HOME/.bash_profile" 'export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"'
|
||||
# shellcheck disable=SC2016
|
||||
add_line_to_file_if_not_exists "$HOME/.bashrc" '. <(asdf completion bash)'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user