Skip to content

Commit 41f6ef6

Browse files
authored
chore: add a lint for shell script (#1968)
* chore: add a lint for shell script * trigger ci * change ci * only failed with error level * not exclude sc2317 * revert change in shell * change a comment to trigger ci * add a shell lint * Revert "add a shell lint" This reverts commit e2fbf2e.
1 parent b94463a commit 41f6ef6

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/verify_library_generation.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,13 @@ jobs:
3838
run: |
3939
set -x
4040
library_generation/test/generate_library_unit_tests.sh
41+
lint:
42+
runs-on: ubuntu-22.04
43+
steps:
44+
- uses: actions/checkout@v3
45+
- name: Run ShellCheck
46+
uses: ludeeus/[email protected]
47+
with:
48+
scandir: 'library_generation'
49+
format: tty
50+
severity: error

library_generation/test/generate_library_unit_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -xeo pipefail
44

5-
# Variables used to generate final result
5+
# Variables used to generate final result.
66
total_num=0
77
succeed_num=0
88
failed_num=0

0 commit comments

Comments
 (0)