Skip to content

Commit

Permalink
adding API Check and Lint to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
DevSrSouza committed Dec 9, 2023
1 parent a0bac5a commit 82629c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 82629c0

Please sign in to comment.