From 1fd41194005335de89e0f9bbd7688e3423b5ab22 Mon Sep 17 00:00:00 2001 From: pshubham Date: Mon, 3 Jun 2024 17:08:41 +0530 Subject: [PATCH] Adding linter check for commits --- .github/workflows/pre-commit-actions.yml | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/pre-commit-actions.yml diff --git a/.github/workflows/pre-commit-actions.yml b/.github/workflows/pre-commit-actions.yml new file mode 100644 index 0000000..2347ceb --- /dev/null +++ b/.github/workflows/pre-commit-actions.yml @@ -0,0 +1,26 @@ +name: precommit-actions +run-name: ${{ github.actor }} is running precommit actions. +on: [push] +build: + name: Lint + runs-on: ubuntu-latest + + permissions: + contents: read + packages: read + # To report GitHub Actions status checks + statuses: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + # super-linter needs the full git history to get the + # list of files that changed across commits + fetch-depth: 0 + + - name: Super-linter + uses: super-linter/super-linter@v6.5.1 # x-release-please-version + env: + # To report GitHub Actions status checks + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}