From c97b16d96c8b1771973dba1596477f7d7e9ba201 Mon Sep 17 00:00:00 2001 From: Matteo Croce Date: Fri, 28 Oct 2022 00:05:12 +0200 Subject: [PATCH] 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 --- .github/workflows/lint.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..35e7091 --- /dev/null +++ b/.github/workflows/lint.yml @@ -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