Merge pull request #710 from PatilShreyas/dependabot/gradle/noty-api/… #916
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 (API) | |
on: | |
push: | |
paths: | |
- 'noty-api/**' | |
pull_request: | |
paths: | |
- 'noty-api/**' | |
jobs: | |
build: | |
name: Build API | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Cache Gradle | |
uses: actions/cache@v2 | |
with: | |
path: ~/noty-android/.gradle/caches/ | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Cache Gradle wrapper | |
uses: actions/cache@v2 | |
with: | |
path: ~/noty-android/.gradle/wrapper/ | |
key: cache-clean-wrapper-${{ runner.os }}-${{ matrix.jdk }} | |
- name: Grant Permission to Execute | |
run: chmod +x gradlew | |
working-directory: noty-api | |
- name: 🏗 Build with Gradle 🛠️ | |
run: ./gradlew build --stacktrace | |
working-directory: noty-api |