diff options
author | kylo252 <[email protected]> | 2021-08-13 12:11:18 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-13 12:11:18 +0200 |
commit | 988c74ec5665250c572dcc6bae018ed0ea180c25 (patch) | |
tree | 747556740d360482fc0edfc7ce5ce996bbbca06a /.github | |
parent | 6bbce4ee07ac8428846dfb6722e15a932d6d9e05 (diff) |
feat: Add pre-commit hook for linting and formatting (#1132)
* feat: Add pre-commit hook for linting and formatting
* format with prettier
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yaml | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 87f93a00..f5aab0eb 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -22,17 +22,13 @@ jobs: - name: Run luacheck run: luacheck *.lua lua/ - - shell-linter: - name: "Linting with shellcheck" - runs-on: ubuntu-20.04 + + shellcheck: + name: Shellcheck + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - name: Use shellcheck - run: sudo apt-get install shellcheck - - - name: Run shellcheck - run: | - pwd - shellcheck $(find . -name "*.sh") + - uses: actions/checkout@v2 + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@master + with: + scandir: './utils' |