From 2ee3595e31d279ca89396824476d9d12625a4cc8 Mon Sep 17 00:00:00 2001 From: Maria Sfiraiala Date: Fri, 28 Jul 2023 11:52:44 +0300 Subject: [PATCH] workflows: Add linters Add checkpatch, super-linter, spellcheck linters. Signed-off-by: Maria Sfiraiala --- .github/workflows/linting.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/linting.yml diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 0000000..4eff2b4 --- /dev/null +++ b/.github/workflows/linting.yml @@ -0,0 +1,34 @@ +name: Linting Workflow + +on: + pull_request: + branches: + - master + +jobs: + checkpatch: + name: Checkpatch + runs-on: ubuntu-latest + steps: + - name: 📥 Checkpatch + uses: security-summer-school/actions/checkpatch@main + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + super-linter: + name: Super Linter + runs-on: ubuntu-latest + steps: + - name: 📥 Super Linter + uses: security-summer-school/actions/super-linter@main + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + spellcheck: + name: Spellcheck + runs-on: ubuntu-latest + steps: + - name: 📥 Spellcheck + uses: security-summer-school/actions/spellcheck@main + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}