mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-05 16:19:06 +08:00
ci: enable shellcheck linter
Run shellckeck linter in a github action, as in https://github.com/libbpf/ci/pull/61 Signed-off-by: Matteo Croce <teknoraver@meta.com>
This commit is contained in:
committed by
Andrii Nakryiko
parent
1c17672353
commit
c97b16d96c
19
.github/workflows/lint.yml
vendored
Normal file
19
.github/workflows/lint.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: "lint"
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
shellcheck:
|
||||||
|
name: ShellCheck
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Run ShellCheck
|
||||||
|
uses: ludeeus/action-shellcheck@master
|
||||||
|
env:
|
||||||
|
SHELLCHECK_OPTS: --severity=error
|
||||||
Reference in New Issue
Block a user