From 9aba1e0ba39e7815cb46f9222abaab56eb0db587 Mon Sep 17 00:00:00 2001 From: Amit Siddhpura <149592822+amitsid1408@users.noreply.github.com> Date: Tue, 23 Apr 2024 12:28:22 +0530 Subject: [PATCH] Create lint-checks.yml Added file for lint checks for kotlin and android both --- .github/workflows/lint-checks.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/lint-checks.yml diff --git a/.github/workflows/lint-checks.yml b/.github/workflows/lint-checks.yml new file mode 100644 index 0000000..57bc789 --- /dev/null +++ b/.github/workflows/lint-checks.yml @@ -0,0 +1,29 @@ +name: Android Lint +run-name: Running Android Lint + +on: + pull_request: + branches: + - 'development' + +jobs: + android-lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Java SDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'adopt' + java-version: 17 + + - name: Run ktLint + run: ./gradlew ktlint + continue-on-error: false + + - name: Run Lint + run: ./gradlew lint + continue-on-error: false