From f5568a109bc418b36e12822365dafa7bd466b38b Mon Sep 17 00:00:00 2001 From: Louis Labeyrie Date: Tue, 28 May 2024 17:41:29 +0200 Subject: [PATCH] feat(CI): Add lint --- .github/workflows/main.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 452133d..5497a70 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,11 +1,33 @@ -name: Lint Gradle project +name: Test Gradle project on: [push, pull_request] jobs: + + lint-gradle-project: + runs-on: ubuntu-latest + + steps: + - name: Checkout project source + uses: actions/checkout@v4 + + - name: Set Java + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + - name: Set up Gradle + uses: gradle/actions/setup-gradle@v3 + + - name: Run lint + run: ./gradlew lint + build-gradle-project: runs-on: ubuntu-latest + needs: lint-gradle-project + steps: - name: Checkout project source uses: actions/checkout@v4