Docs update: added details, improved graphs and finished reference #77
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: Run Tests | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Project Checkout | |
uses: actions/checkout@v2 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '17' | |
- name: System Information | |
run: printf "\nKernel:\n " && uname -a && printf "\n\nMemory:\n " && free -h && printf "\n\nStorage:\n" && df -h && ls -la && pwd | |
- name: Build | |
run: ./gradlew build --stacktrace | |
- name: Run tests | |
run: ./gradlew test --stacktrace # testDebug or testRelease (if you have any) | |
- name: Unit tests results [antipiracy] | |
uses: actions/upload-artifact@v1 | |
with: | |
name: test-report | |
path: antipiracy/build/reports/tests/testDebugUnitTest/ | |
- name: Unit tests results [integrity] | |
uses: actions/upload-artifact@v1 | |
with: | |
name: test-report | |
path: integrity/build/reports/tests/testDebugUnitTest/ | |
- name: Unit tests results [rooting] | |
uses: actions/upload-artifact@v1 | |
with: | |
name: test-report | |
path: rooting/build/reports/tests/testDebugUnitTest/ | |
link: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Project Checkout | |
uses: actions/checkout@v2 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '17' | |
- name: System Information | |
run: printf "\nKernel:\n " && uname -a && printf "\n\nMemory:\n " && free -h && printf "\n\nStorage:\n" && df -h && ls -la && pwd | |
- name: Build | |
run: ./gradlew build --stacktrace | |
- name: Lint | |
run: ./gradlew lint --stacktrace | |
- name: Lint results [antipiracy] | |
uses: actions/upload-artifact@v1 | |
with: | |
name: lint-report | |
path: antipiracy/build/reports/ | |
- name: Lint results [integrity] | |
uses: actions/upload-artifact@v1 | |
with: | |
name: lint-report | |
path: integrity/build/reports/ | |
- name: Lint results [rooting] | |
uses: actions/upload-artifact@v1 | |
with: | |
name: lint-report | |
path: rooting/build/reports/ |