[Usage] Take device shutdowns into account while calculating app usage #894
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: Lint | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'AppManager-*' | |
paths-ignore: | |
- 'fastlane/**' | |
- 'scripts/**' | |
- '*.md' | |
pull_request: | |
branches: | |
- 'master' | |
- 'AppManager-*' | |
paths-ignore: | |
- 'fastlane/**' | |
- 'scripts/**' | |
- '*.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone the repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
cache: 'gradle' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Run lint | |
run: ./gradlew lint | |
- name: Upload lint results | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ./app/build/reports/lint-results-debug.html |