mirror of
https://github.com/yogeshpaliyal/KeyPass.git
synced 2026-01-05 01:09:40 -06:00
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: PR Check
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths-ignore:
|
|
- 'fastlane/**'
|
|
- '.github/**'
|
|
- 'icons/**'
|
|
- 'images/**'
|
|
- 'scripts/**'
|
|
- 'whatsnew/**'
|
|
- '**.md'
|
|
- '**.MD'
|
|
|
|
# If two events are triggered within a short time in the same PR, cancel the run of the oldest event
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
validate-pr:
|
|
name: 'Tests and Build Production Debug Build'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setting up project
|
|
uses: ./.github/actions/setup
|
|
|
|
- name: 🧪 Run Tests
|
|
run: ./gradlew test
|
|
|
|
# - name: 🧪 Run Lint free Release
|
|
# run: ./gradlew lintFreeRelease
|
|
|
|
- name: 🏗 Build APK
|
|
run: bash ./gradlew assembleFreeDebug
|
|
|
|
- name: 🚀 Upload APK to Artifacts 📱
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: app
|
|
path: app/build/outputs/apk/free/debug/*.apk
|
|
retention-days: 3
|