mirror of https://github.com/tuskyapp/Tusky.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
877 B
41 lines
877 B
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: Gradle Build Action |
|
uses: gradle/gradle-build-action@v2 |
|
with: |
|
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }} |
|
|
|
- name: ktlint |
|
run: ./gradlew clean ktlintCheck |
|
|
|
- name: Regular lint |
|
run: ./gradlew app:lintGreenDebug |
|
|
|
- name: Test |
|
run: ./gradlew app:testGreenDebugUnitTest |
|
|
|
- name: Build |
|
run: ./gradlew app:buildGreenDebug
|
|
|