Skip to content

Bump com.diffplug.spotless from 6.22.0 to 6.23.2 #816

Bump com.diffplug.spotless from 6.22.0 to 6.23.2

Bump com.diffplug.spotless from 6.22.0 to 6.23.2 #816

Workflow file for this run

# Workflow name
name: Build app
on:
# Trigger on every pull request and on push
# to the `main` branch.
pull_request:
push:
branches:
- main
permissions:
contents: write
# Where will they run
jobs:
build:
name: Generate APK
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Extract GOOGLE_SERVICES_JSON
shell: bash
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: |
echo "$GOOGLE_SERVICES_JSON" | base64 --decode > app/google-services.json
- name: Setup JDK - Temurin 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Gradle to generate and submit dependency graphs
uses: gradle/gradle-build-action@v2
with:
dependency-graph: generate-and-submit
- name: Build APK
run: >
./gradlew
--stacktrace
:app:assembleDebug
- name: Check code format and dependencies
run: >
./gradlew
spotlessCheck
dependencyUpdates
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: UnitConverter.apk
path: app/build/outputs/apk/debug/app-debug.apk
- name: Upload Dependencies report
uses: actions/upload-artifact@v3
with:
name: dependencyUpdates.txt
path: build/dependencyUpdates/report.txt
- name: Upload reports on failure
if: failure()
uses: actions/upload-artifact@v3
with:
name: reports
path: |
**/build/reports/
**/build/test-results/
dependency-review:
name: Generate Dependency Review for Pull Requests
if: github.event_name == 'pull_request'
needs: build
runs-on: ubuntu-latest
steps:
- name: Perform dependency review
uses: actions/dependency-review-action@v3