Skip to content

These changes will:

These changes will: #3

Workflow file for this run

name: Android CI - Development
on:
push:
branches:
- dev
- feature/*
pull_request:
branches:
- dev
jobs:
primary-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Check Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Check Android Lint
run: ./gradlew lint
- name: Check Code Style
run: ./gradlew ktlintCheck
- name: Run Unit Tests
run: ./gradlew test
- name: Check Dependency Updates
run: ./gradlew dependencyUpdates
build:
needs: primary-checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Debug APK
run: ./gradlew assembleDebug
- name: Upload Debug APK
uses: actions/upload-artifact@v2
with:
name: app-debug
path: app/build/outputs/apk/debug/app-debug.apk
- name: Upload Build Reports
if: always()
uses: actions/upload-artifact@v2
with:
name: build-reports
path: app/build/reports/
- name: Create Pre-release
if: github.ref == 'refs/heads/dev'
uses: softprops/action-gh-release@v1
with:
files: app/build/outputs/apk/debug/app-debug.apk
tag_name: v${{ env.NEW_VERSION }}-beta
name: "Beta v${{ env.NEW_VERSION }}"
body: |
🚧 Beta Release v${{ env.NEW_VERSION }}
This is a pre-release build from the development branch.
⚠️ This version may contain bugs and is not intended for production use.
Changes in this version:
${{ github.event.head_commit.message }}
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}