Skip to content

Update all dependencies #235

Update all dependencies

Update all dependencies #235

Workflow file for this run

name: verifying
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run Lint Check
run: ./gradlew lint
- name: Upload Lint Report
uses: actions/upload-artifact@v4
with:
name: lint-results
path: app/build/reports/lint-results-debug.html
unit-test:
# needs: [ lint ]
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Run tests
run: ./gradlew test
- name: Upload test report
uses: actions/upload-artifact@v4
with:
name: unit_test_report
path: app/build/reports/tests/testDebugUnitTest/
# instrumentation-test:
# needs: [unit-test]
# runs-on: macos-latest
# steps:
# - name: Checkout the code
# uses: actions/checkout@v2
#
# - name: Run espresso tests
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: 29
# script: ./gradlew connectedCheck
#
# - name: Upload test report
# uses: actions/upload-artifact@v2
# with:
# name: instrumentation_test_report
# path: app/build/reports/androidTests/connected/
static-code-analysis:
# needs: [instrumentation-test]
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
- name: SonarCloud Scan
run: ./gradlew app:sonarqube -Dsonar.login=${{ secrets.SONAR_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package:
# needs: [static-code-analysis]
name: Generate APK
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
- name: Build debug APK
run: ./gradlew assembleDebug --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: expense-manager.apk
path: app/build/outputs/apk/debug/app-debug.apk