This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
Check pull request #4360
Workflow file for this run
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
on: | |
pull_request: | |
merge_group: | |
name: Check pull request | |
concurrency: | |
group: ${{ github.head_ref || github.ref_name }} | |
cancel-in-progress: true | |
env: | |
SENTRY_DSN: 'https://[email protected]/project_id' | |
jobs: | |
check-codestyle: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup build environment | |
uses: android-password-store/android-password-store/.github/reusable-workflows/setup-gradle@develop | |
- name: Check codestyle | |
shell: bash | |
run: ./gradlew spotlessCheck | |
- name: Upload Kotlin build report | |
if: "${{ always() }}" | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
with: | |
name: Build report (check-codestyle) | |
path: build/reports/kotlin-build/ | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup build environment | |
uses: android-password-store/android-password-store/.github/reusable-workflows/setup-gradle@develop | |
- name: Run unit tests | |
shell: bash | |
run: ./gradlew test -PslimTests | |
- name: (Fail-only) Upload test report | |
if: "${{ failure() }}" | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
with: | |
name: Test report (unit-tests) | |
path: app/build/reports | |
- name: Upload Kotlin build report | |
if: "${{ always() }}" | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
with: | |
name: Build report (unit-tests) | |
path: build/reports/kotlin-build/ | |
build-apks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup build environment | |
uses: android-password-store/android-password-store/.github/reusable-workflows/setup-gradle@develop | |
- name: Build debug APKs | |
shell: bash | |
run: ./gradlew assembleFreeDebug assembleNonFreeDebug assembleNonFreeRelease | |
- name: Upload Kotlin build report | |
if: "${{ always() }}" | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
with: | |
name: Build report (build-apks) | |
path: build/reports/kotlin-build/ | |
check-api: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup build environment | |
uses: android-password-store/android-password-store/.github/reusable-workflows/setup-gradle@develop | |
- name: Check library API | |
shell: bash | |
run: ./gradlew metalavaCheckCompatibilityRelease | |
- name: Upload Kotlin build report | |
if: "${{ always() }}" | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
with: | |
name: Build report (check-api) | |
path: build/reports/kotlin-build/ | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup build environment | |
uses: android-password-store/android-password-store/.github/reusable-workflows/setup-gradle@develop | |
- name: Run Lint | |
shell: bash | |
run: ./gradlew lint | |
- name: Upload Kotlin build report | |
if: "${{ always() }}" | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
with: | |
name: Build report (lint) | |
path: build/reports/kotlin-build/ |