From fabc9c1c0f404dfe8751002128fc126dc2344509 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 16 Aug 2020 13:12:28 +0200 Subject: [PATCH 1/2] actions: add linter actions for lua and shell script --- .github/workflows/lint.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 00000000..d079b235 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,29 @@ +name: Lint +on: + push: + pull_request: + types: [opened, synchronize, reopened] +jobs: + lua: + name: Lua + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Install Dependencies + run: sudo apt install lua-check + - name: Install example site + run: ln -s ./docs/site-example ./site + - name: Lint Lua code + run: make lint-lua + + sh: + name: Shell + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Install Dependencies + run: sudo apt install shellcheck + - name: Install example site + run: ln -s ./docs/site-example ./site + - name: Lint shell code + run: make lint-sh From 7ca9d331e4bb8c282b741627006c2b8cfa283096 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 16 Aug 2020 13:20:24 +0200 Subject: [PATCH 2/2] editorconfig: indent yaml with two spaces --- .editorconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.editorconfig b/.editorconfig index 23219591..3581b168 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,6 +7,10 @@ insert_final_newline = true indent_style = tab charset = utf-8 +[*.yml] +indent_style = space +indent_size = 2 + [*.py] indent_style = space indent_size = 4