Skip to content

Add new categories approach #67

Add new categories approach

Add new categories approach #67

Workflow file for this run

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