Migration to kdbx (keepass) #71
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
name: Android PR | |
on: | |
pull_request: | |
branches: [ "develop" ] | |
concurrency: | |
group: ${{ github.ref }} | |
jobs: | |
lint: | |
name: Lint | |
runs-on: macos-latest | |
env: | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
- name: Set up JDK 11 | |
uses: actions/[email protected] | |
with: | |
distribution: adopt | |
java-version: 11 | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Spotless Apply | |
run: ./gradlew spotlessApply --scan | |
- name: Spotless | |
run: ./gradlew spotlessCheck | |
test: | |
name: Unit tests | |
runs-on: macos-latest | |
env: | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
- name: Set up JDK 11 | |
uses: actions/[email protected] | |
with: | |
distribution: adopt | |
java-version: 11 | |
- uses: ./.github/workflows/caches | |
with: | |
key-prefix: gradle-test | |
- name: Decrypt and save secrets | |
env: | |
PASSPHRASE: ${{ secrets.ENCRYPT_PASSPHRASE }} | |
run: chmod +x ./scripts/decrypt-and-save.sh && ./scripts/decrypt-and-save.sh | |
- name: Unit tests | |
run: ./gradlew testDebugUnitTest | |
- name: Clean secrets | |
if: always() | |
run: chmod +x ./scripts/cleanup-secrets.sh && ./scripts/cleanup-secrets.sh | |
- name: Upload test results | |
uses: actions/[email protected] | |
if: failure() | |
with: | |
name: testDebugUnitTest | |
path: ./**/build/reports/tests/testDebugUnitTest |