Skip to content

Commit 775c9f3

Browse files
committed
workflows: Consolidate static tests
Signed-off-by: Loïc Minier <[email protected]>
1 parent 9962851 commit 775c9f3

File tree

2 files changed

+16
-37
lines changed

2 files changed

+16
-37
lines changed

.github/workflows/shellcheck.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/pylint.yml renamed to .github/workflows/static-checks.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Static analysis of Python scripts with Pylint
1+
name: Static analysis of scripts
22

33
on:
44
# run on pull requests to the main branch
@@ -19,7 +19,7 @@ concurrency:
1919
cancel-in-progress: true
2020

2121
jobs:
22-
shellcheck:
22+
pylint:
2323
name: Install and run Pylint on Python scripts
2424
runs-on: ubuntu-latest
2525
steps:
@@ -33,3 +33,17 @@ jobs:
3333
- name: Run Pylint (error mode)
3434
run: pylint --errors-only scripts/*.py
3535

36+
shellcheck:
37+
name: Install and run ShellCheck on shell scripts
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Install ShellCheck
41+
run: sudo apt update && sudo apt -y install shellcheck
42+
43+
- uses: actions/checkout@v4
44+
with:
45+
fetch-depth: 0
46+
47+
- name: Run ShellCheck
48+
run: shellcheck scripts/*.sh
49+

0 commit comments

Comments
 (0)