Commit 08b1c03
committed
ci: Add bash script syntax check to CI
This commit introduces a new step to the CI workflow (`ci.yml`) that performs a syntax check on all bash scripts within the repository.
The new CI job:
- Identifies all `.sh` files and files with a bash shebang (`#!/bin/bash` or `#!/usr/bin/env bash`).
- Excludes common directories like `node_modules`, `.git`, and `.augment`.
- Uses `bash -n` to perform a non-destructive syntax validation for each identified script.
- Reports any syntax errors found, providing detailed output to aid in debugging.
This addition aims to proactively catch and prevent syntax errors in shell scripts before they are merged, improving code quality and reliability.1 parent 7577b80 commit 08b1c03
1 file changed
+54
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
99 | 153 | | |
100 | 154 | | |
101 | 155 | | |
| |||
0 commit comments