Add a tool for catching illegal dependencies #22
Workflow file for this run
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: | |
branches: | |
- main | |
jobs: | |
test: | |
needs: [build] | |
name: Unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v2 | |
- name: Setup JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Run tests | |
run: ./gradlew test | |
- name: Upload test report | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: unit_test_report | |
path: build/reports/tests/test/ | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Code | |
uses: actions/checkout@v2 | |
- name: Setup JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Build debug APK | |
run: ./gradlew build | |
env: | |
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Dfile.encoding=UTF-8" |