chore(deps): update plugin pl.allegro.tech.build.axion-release to v1.18.16 #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout code | |
with: | |
fetch-depth: 0 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
cache: gradle | |
- name: Check for changes in app directory | |
id: check-changes | |
run: | | |
CHANGED=$(git diff --name-only origin/main...HEAD -- app/) | |
if [ -z "$CHANGED" ]; then | |
echo "No changes in app/ directory." | |
echo "skip-build-app=true" >> $GITHUB_ENV | |
fi | |
- name: Build and test SDK | |
if: env.skip-build-app == 'true' | |
run: ./gradlew unleashandroidsdk:build unleashandroidsdk:jacocoTestReport | |
- name: Build and test all | |
if: env.skip-build-app != 'true' | |
run: ./gradlew build jacocoTestReport | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
allow-empty: true | |
base-path: unleashandroidsdk/src/main/java |