From 82629c0ece641f3b33503643ec329e1f96a44b4b Mon Sep 17 00:00:00 2001 From: DevSrSouza Date: Tue, 28 Nov 2023 14:41:20 -0300 Subject: [PATCH] adding API Check and Lint to workflows --- .github/workflows/build.yaml | 8 ++++++++ .github/workflows/release.yaml | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 89c9bb7c..48f93535 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -25,6 +25,14 @@ jobs: java-version: 17 distribution: 'temurin' + - name: Lint + run: | + ./gradlew ktlintCheck --stacktrace + + - name: Api Check + run: | + ./gradlew apiCheck --stacktrace + - name: Validate publish run: | ./gradlew -Pversion=1.0.0-SNAPSHOT publishToMavenLocal --stacktrace \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e5148daf..18246c29 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,6 +25,10 @@ jobs: java-version: 17 distribution: 'temurin' + - name: Api Check + run: | + ./gradlew apiCheck --stacktrace + - name: Deploy to Sonatype run: | NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)