Skip to content

Commit

Permalink
Update release workflow with lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahkoop committed Sep 29, 2023
1 parent dbf15a1 commit 56309dc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ jobs:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_KEY_FILE: ${{ env.SIGNING_KEY_FILE_PATH }}
static_analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Java 11
uses: actions/setup-java@v2
with:
java-version: '11.0.10'
distribution: 'zulu'
- name: Run Static Analysis
uses: ./.github/actions/static_analysis
unit_test:
name: Unit Tests
runs-on: ubuntu-latest
Expand All @@ -43,7 +56,7 @@ jobs:
java-version: '11.0.10'
distribution: 'zulu'
- name: Unit Tests
run: ./gradlew --stacktrace testRelease
run: ./ci unit_tests
publish:
needs: [ unit_test, build_aar ]
name: Publish Drop-in
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Static Analysis
on: [pull_request, workflow_dispatch]
concurrency:
group: static-analysis-${{ github.event.number }}
cancel-in-progress: true
jobs:
android_lint:
name: Android Lint
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Java 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'microsoft'
- name: Lint
run: ./ci lint

0 comments on commit 56309dc

Please sign in to comment.