Skip to content

Commit

Permalink
GitHub Actions: lint amzn release on release branches.
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed Nov 23, 2023
1 parent 8959640 commit d816951
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/assemble-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
run: ./gradlew -version

# Note: Currently no difference between flavors or debug and release
# Note: running tests will also compile
- name: Build and run unit tests
run: ./gradlew :app:testPureDebugUnitTest

Expand Down Expand Up @@ -56,13 +57,19 @@ jobs:
# To speed up lint check only run for release variant and only on app module
# Note: the app module has lintOptions.checkDependencies true, so submodules will be checked
# Source: https://groups.google.com/forum/#!topic/lint-dev/RGTvK_uHQGQ
- name: Run lint
# Note: running lint will also compile
- name: Lint goog release
run: ./gradlew :app:lintPureRelease

- name: Lint amzn release
if: ${{ contains(github.ref, 'release') }}
run: ./gradlew :app:lintAmazonRelease

- name: Upload lint reports
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
if: ${{ always() }} # also upload of lint errors
with:
name: Lint reports
path: |
app/build/reports/lint-results-pureRelease.html
app/build/reports/lint-results-amazonRelease.html

0 comments on commit d816951

Please sign in to comment.