Skip to content

Add new categories approach (#196) #120

Add new categories approach (#196)

Add new categories approach (#196) #120

Workflow file for this run

name: Android CI
on:
push:
branches: [ "develop" ]
tags:
- 'v*'
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 17
uses: actions/[email protected]
with:
distribution: adopt
java-version: 17
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Spotless Apply
run: ./gradlew spotlessApply --scan
- name: Spotless
run: ./gradlew spotlessCheck
build:
name: Build
runs-on: macos-latest
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
steps:
- name: Check out code
uses: actions/[email protected]
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: adopt
java-version: 17
- uses: ./.github/workflows/caches
with:
key-prefix: gradle-build
- name: Create google-services.json file
- name: Decrypt and save secrets
env:
PASSPHRASE: ${{ secrets.ENCRYPT_PASSPHRASE }}
run: chmod +x ./scripts/decrypt-and-save.sh && ./scripts/decrypt-and-save.sh
- name: Build
run: ./gradlew assembleDebug
test:
name: Unit tests
runs-on: ubuntu-22.04
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
steps:
- name: Check out code
uses: actions/[email protected]
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: adopt
java-version: 17
- uses: ./.github/workflows/caches
with:
key-prefix: gradle-test
- 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