Merge pull request #117 from dmytrodanylyk/dependabot/github_actions/… #132
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: PullRequest | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
buildTest: | |
name: Build & Test JDK ${{ matrix.java_version }} | |
runs-on: macOS-14 | |
strategy: | |
matrix: | |
java_version: [ 17 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install JDK ${{ matrix.java_version }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ matrix.java_version }} | |
- name: Install Android SDK | |
uses: hannesa2/action-android/[email protected] | |
- name: Build project | |
run: ./gradlew assembleDebug | |
Check: | |
name: Check | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java_version: [ 17 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install JDK ${{ matrix.java_version }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ matrix.java_version }} | |
- uses: gradle/actions/wrapper-validation@v4 | |
- name: Install Android SDK | |
uses: hannesa2/action-android/[email protected] | |
- name: Code checks | |
run: ./gradlew check |