2024-04-19 15:49:30 -06:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2024-04-20 10:12:52 -06:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
|
|
|
- 'README.md'
|
|
|
|
- 'doc/**'
|
|
|
|
- 'fastlane/**'
|
|
|
|
- 'assets/**'
|
|
|
|
- '.github/**/*.md'
|
|
|
|
- '.github/FUNDING.yml'
|
|
|
|
- '.github/ISSUE_TEMPLATE/**'
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
|
|
|
- 'README.md'
|
|
|
|
- 'doc/**'
|
|
|
|
- 'fastlane/**'
|
|
|
|
- 'assets/**'
|
|
|
|
- '.github/**/*.md'
|
|
|
|
- '.github/FUNDING.yml'
|
|
|
|
- '.github/ISSUE_TEMPLATE/**'
|
2024-04-19 15:49:30 -06:00
|
|
|
|
|
|
|
jobs:
|
2024-04-20 10:12:52 -06:00
|
|
|
build:
|
2024-04-19 15:49:30 -06:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2024-04-20 10:12:52 -06:00
|
|
|
permissions: write-all
|
|
|
|
|
2024-04-19 15:49:30 -06:00
|
|
|
steps:
|
2024-04-20 10:12:52 -06:00
|
|
|
- name: Checkout branch "${{ github.ref_name }}"
|
|
|
|
run: |
|
2024-07-26 22:55:05 +03:00
|
|
|
git clone --no-checkout https://github.com/MaintainTeam/LastPipeBender.git .
|
2024-04-20 10:12:52 -06:00
|
|
|
git config core.symlinks false
|
|
|
|
git checkout --progress --force ${{ github.ref_name }}
|
|
|
|
|
|
|
|
- name: Set up JDK 17
|
|
|
|
uses: actions/setup-java@v4
|
|
|
|
with:
|
|
|
|
java-version: 17
|
|
|
|
distribution: "temurin"
|
|
|
|
cache: 'gradle'
|
|
|
|
|
|
|
|
- name: Build debug APK and run jvm tests
|
|
|
|
run: ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace -DskipFormatKtlint
|
|
|
|
|
|
|
|
- name: Upload APK
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: app
|
|
|
|
path: app/build/outputs/apk/debug/*.apk
|