Skip to content

Commit 0d7fd29

Browse files
Add shell and systemd linting
1 parent aa78a03 commit 0d7fd29

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Lint shell scripts
2+
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
3+
# https://github.com/marketplace/actions/shell-linter
4+
name: Lint shell scripts
5+
on: push
6+
jobs:
7+
lint_shell:
8+
runs-on: ubuntu-24.04
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: azohra/[email protected]
12+
with:
13+
severity: 'warning'
14+
exclude-paths: 'LICENSE'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# GitHub Actions workflow for linting the systemd unit files
2+
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
3+
name: Lint systemd units
4+
on: [ push ]
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-24.04
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
- name: Install systemdlint
12+
run: pip install systemdlint==1.*
13+
- name: Lint systemd units
14+
run: systemdlint ./config/systemd/*

0 commit comments

Comments
 (0)