From 307b04a95dded6fcc0e7b85ae8c7c5c9979124db Mon Sep 17 00:00:00 2001 From: Neel Doshi Date: Mon, 11 Mar 2024 03:24:15 +0530 Subject: [PATCH] Create ktlint.yml --- .github/workflows/ktlint.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/ktlint.yml diff --git a/.github/workflows/ktlint.yml b/.github/workflows/ktlint.yml new file mode 100644 index 0000000000..7bed332224 --- /dev/null +++ b/.github/workflows/ktlint.yml @@ -0,0 +1,22 @@ +name: Code Quality Checks / ktlint + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + + - name: Grant execute permission for gradlew + run: chmod +x ./gradlew + + - name: Run ktlint + run: ./gradlew ktlintCheck