Skip to content

Commit 2735fdc

Browse files
committed
ci: sync linting to the version in gluon-packages
According to Matthias' commit this adds the following changes: "Differing from the community-packages, a newer version of action-shellcheck is used, and shellcheck is always run on the whole repo, not just changed files." Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
1 parent 862167e commit 2735fdc

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/lint.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
---
12
name: Lint
23
on:
4+
workflow_dispatch:
35
push:
46
pull_request:
57
types: [opened, synchronize, reopened]
8+
69
jobs:
7-
Lua:
10+
lua:
811
name: Lua
912
runs-on: ubuntu-latest
1013
steps:
@@ -13,3 +16,17 @@ jobs:
1316
run: sudo apt-get install lua-check
1417
- name: Lint Lua
1518
run: luacheck .
19+
20+
sh:
21+
name: Shell
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: shellcheck
26+
# Make sure the action is pinned to a commit, as all reviewdog repos
27+
# have hundreds of contributors with write access (breaks easy/often)
28+
uses: reviewdog/action-shellcheck@5ebd09ddbe2ebb471646ce234c6c8dd18663ca7c # v1.30.0
29+
with:
30+
fail_level: any
31+
check_all_files_with_shebangs: true
32+
filter_mode: nofilter

0 commit comments

Comments
 (0)