mirror of
https://github.com/pachli/pachli-android.git
synced 2025-02-09 00:18:56 +01:00
The separation between the `develop` and `main` branches was inherited from Tusky and isn't helpful, complicating the release process and causing CI to repeatedly run the same actions on the same code. Deprecate the `develop` branch by removing references to it in the documentation and updating the CI configuration as necessary. Separately, the GitHub settings will be changed to set `main` as the default branch, and the `develop` branch will be deleted.
45 lines
977 B
YAML
45 lines
977 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
|
|
- name: Gradle Wrapper Validation
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
- name: Copy CI gradle.properties
|
|
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
- name: Gradle Build Action
|
|
uses: gradle/gradle-build-action@v2
|
|
with:
|
|
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
|
|
|
|
- name: ktlint
|
|
run: ./gradlew clean ktlintCheck
|
|
|
|
- name: Regular lint
|
|
run: ./gradlew app:lintOrangeDebug
|
|
|
|
- name: Test
|
|
run: ./gradlew app:testOrangeDebugUnitTest
|
|
|
|
- name: Build
|
|
run: ./gradlew app:buildOrangeDebug
|