-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.sh
executable file
·37 lines (29 loc) · 958 Bytes
/
setup.sh
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
#!/bin/bash
# Install pre-commit hooks
pre-commit install
# Install PNPM as package manager for NodeJS if it doesn't exist
if ! command -v pnpm &> /dev/null; then
npm install -g pnpm
fi
pnpm install
# Install fixed nightly toolchain
rustup toolchain install nightly-2024-11-06 -c rustfmt
install_cmd="cargo binstall --force --no-confirm"
# Install cargo global crates
cargo install cargo-binstall
$install_cmd cargo-tarpaulin
$install_cmd samply
$install_cmd cargo-watch
$install_cmd knope
$install_cmd cargo-sort
$install_cmd typos-cli
$install_cmd cargo-nextest --secure
# Binstall does not support --features
cargo install cargo-audit --locked --features=fix --force
# Check Helm and install helm-unittest plugin
if ! command -v helm &> /dev/null; then
echo "Warning: Helm is not installed. Please install Helm first."
else
echo "Installing Helm unittest plugin..."
helm plugin install https://github.com/quintush/helm-unittest
fi