mirror of
https://github.com/yogeshpaliyal/KeyPass.git
synced 2026-04-30 19:40:11 -05:00
67093a66d3
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
58 lines
1.1 KiB
YAML
58 lines
1.1 KiB
YAML
name: PR Check
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
|
|
jobs:
|
|
|
|
spotless:
|
|
name: 'Spotless'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setting up project
|
|
uses: ./.github/actions/setup
|
|
|
|
- name: 🛠 Build Project with Spotless Check
|
|
run: ./gradlew spotlessCheck
|
|
|
|
tests:
|
|
name: 'Tests'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setting up project
|
|
uses: ./.github/actions/setup
|
|
|
|
- name: 🧪 Run Tests
|
|
run: ./gradlew test
|
|
|
|
build:
|
|
name: 'Build Production Debug Build'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setting up project
|
|
uses: ./.github/actions/setup
|
|
|
|
- name: 🏗 Build With gradle
|
|
run: bash ./gradlew build
|
|
|
|
- name: 🏗 Build APK
|
|
run: bash ./gradlew assembleProductionDebug
|
|
|
|
- name: 🚀 Upload APK to Artifiacts 📱
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: app
|
|
path: app/build/outputs/apk/production/debug/*.apk
|
|
retention-days: 3
|