Skip to content

Instantly share code, notes, and snippets.

@root-ansh-ct
Created April 19, 2022 06:28
Show Gist options
  • Save root-ansh-ct/1746fb0e1b74ec4c02825c6b23ecb249 to your computer and use it in GitHub Desktop.
Save root-ansh-ct/1746fb0e1b74ec4c02825c6b23ecb249 to your computer and use it in GitHub Desktop.
name: validate PR raised from develop branched to master branch
on:
pull_request:
branches: [ master ]
jobs:
lint-static_checks-test-build:
if: github.head_ref == 'develop'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check lint
if: always()
run: ./gradlew :app:lint :base:lint :common:lint :feat:home:lint :feat:profile:lint
- name: Upload Lint results
if: always()
uses: actions/upload-artifact@v2
with:
name: lint_results
path: |
app/build/reports/lint-results.html
base/build/reports/lint-results.html
common/build/reports/lint-results.html
feat/home/build/reports/lint-results.html
feat/profile/build/reports/lint-results.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment