Skip to content

[V3] Fix up all the tests #1483

[V3] Fix up all the tests

[V3] Fix up all the tests #1483

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
env:
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPR_USER: ${{ secrets.GITHUB_ACTOR }}
jobs:
static-analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '17'
- name: Gradle Run ktlint
run: ./gradlew ktlintCheck --continue
- uses: actions/upload-artifact@v3
name: Upload ktlint report
if: ${{ failure() }}
with:
name: ktlint
path: '**/build/reports/ktlint/'
- name: Gradle Android lint library
run: ./gradlew :library:lintDebug
- uses: actions/upload-artifact@v3
name: Upload library lint report
if: ${{ failure() }}
with:
name: lint
path: 'app/build/reports/library/lint-results-**.html'
- name: Gradle Android lint example
run: ./gradlew :example:lintDebug
- uses: actions/upload-artifact@v3
name: Upload example lint report
if: ${{ failure() }}
with:
name: lint
path: 'app/build/reports/example/lint-results-**.html'