Skip to content

Commit a80cf24

Browse files
authored
Merge pull request #272 from djensenius/add-lint-job
Forgot to add the lint job
2 parents a54918c + 872b1b4 commit a80cf24

8 files changed

Lines changed: 22 additions & 14 deletions

File tree

.github/workflows/actionlint.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
---
22
name: Lint GitHub Actions
33
on: # yamllint disable-line rule:truthy
4-
push:
5-
paths:
6-
- .github/workflows/**.yml
74
pull_request:
85
paths:
96
- .github/workflows/**.yml

.github/workflows/fishlint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 'Lint Fish Files'
33
on: # yamllint disable-line rule:truthy
4-
- push
54
- pull_request
65
jobs:
76
fishlint:

.github/workflows/lualint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Lint Lua files
3-
on: [push, pull_request] # yamllint disable-line rule:truthy
3+
on: pull_request # yamllint disable-line rule:truthy
44
jobs:
55
Lint:
66
runs-on: ubuntu-latest

.github/workflows/shellcheck.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: 'Lint Shell Scripts'
3+
on: # yamllint disable-line rule:truthy
4+
- pull_request
5+
jobs:
6+
shellcheck:
7+
name: 'Shellcheck'
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: 'Checkout'
11+
uses: actions/checkout@v4
12+
- name: 'Shellcheck'
13+
uses: ludeeus/action-shellcheck@master

.github/workflows/stylua.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: StyLua files
3-
on: [push, pull_request] # yamllint disable-line rule:truthy
3+
on: pull_request # yamllint disable-line rule:truthy
44
jobs:
55
run:
66
runs-on: ubuntu-latest

.github/workflows/tomllint.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
---
22
name: Lint TOML Files
33
on: # yamllint disable-line rule:truthy
4-
push:
5-
paths:
6-
- "**/*.toml"
74
pull_request:
85
paths:
96
- "**/*.toml"

install.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ done
4949

5050
if [[ "$PARALLEL_MODE" == "true" ]]; then
5151
# Source parallel installation framework
52+
# shellcheck disable=SC1091
5253
source "$(dirname "$0")/scripts/parallel-install.sh"
5354
echo "🚀 Parallel installation mode enabled"
5455
else
@@ -137,7 +138,7 @@ generate_timing_summary() {
137138
} >> "$LOG_FILE"
138139
fi
139140

140-
echo "Completed: $(date)" >> $LOG_FILE
141+
echo "Completed: $(date)" >> "$LOG_FILE"
141142
}
142143

143144
function link_files() {
@@ -774,24 +775,24 @@ function start_git_status_background() {
774775
}
775776

776777
# shellcheck disable=SC2031
777-
echo '🔗 Starting file linking phase' >> $LOG_FILE
778+
echo '🔗 Starting file linking phase' >> "$LOG_FILE"
778779
link_files_start=$(date +%s)
779780
link_files
780781
log_with_timing "🔗 File linking phase" "$link_files_start"
781782

782783
# shellcheck disable=SC2031
783-
echo '💽 Starting software installation phase' >> $LOG_FILE
784+
echo '💽 Starting software installation phase' >> "$LOG_FILE"
784785
install_software_start=$(date +%s)
785786
install_software
786787
log_with_timing "💽 Software installation phase" "$install_software_start"
787788

788789
# shellcheck disable=SC2031
789-
echo '👩‍🔧 Starting software configuration phase' >> $LOG_FILE
790+
echo '👩‍🔧 Starting software configuration phase' >> "$LOG_FILE"
790791
setup_software_start=$(date +%s)
791792
setup_software
792793
log_with_timing "👩‍🔧 Software configuration phase" "$setup_software_start"
793794

794795
# shellcheck disable=SC2031
795-
echo '✅ Installation completed successfully!' >> $LOG_FILE
796+
echo '✅ Installation completed successfully!' >> "$LOG_FILE"
796797
generate_timing_summary
797798

scripts/demo-parallel.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ echo "cargo package installations with shorter delays."
1010
echo ""
1111

1212
# Source the parallel installation framework
13+
# shellcheck disable=SC1091
1314
source "$(dirname "$0")/parallel-install.sh"
1415

1516
# Demo cargo installation with simulated delays

0 commit comments

Comments
 (0)