From 0b7668d037b03cfe0ebe84c8a0d87e29c7617af3 Mon Sep 17 00:00:00 2001 From: Luc Sinet Date: Mon, 19 Jul 2021 18:22:49 +0200 Subject: [Feature] Add shell workflows (#1030) --- .github/workflows/lint.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/lint.yaml (limited to '.github/workflows/lint.yaml') diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 00000000..87f93a00 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,38 @@ +name: lint +on: + push: + branches: '**' + pull_request: + branches: + - 'master' + - 'rolling' + +jobs: + lua-linter: + name: "Linting with luacheck" + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - uses: leafo/gh-actions-lua@v8 + - uses: leafo/gh-actions-luarocks@v4 + + - name: Use luacheck + run: luarocks install luacheck + + - name: Run luacheck + run: luacheck *.lua lua/ + + shell-linter: + name: "Linting with shellcheck" + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - name: Use shellcheck + run: sudo apt-get install shellcheck + + - name: Run shellcheck + run: | + pwd + shellcheck $(find . -name "*.sh") -- cgit v1.2.3