2023-07-10 21:02:14 +02:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-27 12:13:11 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-07-10 21:02:14 +02:00
|
|
|
|
|
|
|
- uses: actions/setup-java@v3
|
|
|
|
with:
|
2023-07-30 15:50:04 +02:00
|
|
|
java-version: '17'
|
2023-07-10 21:02:14 +02:00
|
|
|
distribution: 'temurin'
|
|
|
|
|
|
|
|
- name: Gradle Wrapper Validation
|
|
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
|
2023-08-08 23:04:29 +02:00
|
|
|
- name: Copy CI gradle.properties
|
|
|
|
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
|
2023-07-10 21:02:14 +02:00
|
|
|
- name: Gradle Build Action
|
|
|
|
uses: gradle/gradle-build-action@v2
|
2023-07-12 13:26:30 +02:00
|
|
|
with:
|
2023-09-19 16:40:07 +02:00
|
|
|
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
|
2023-07-30 15:50:04 +02:00
|
|
|
|
2023-07-10 21:02:14 +02:00
|
|
|
- name: ktlint
|
|
|
|
run: ./gradlew clean ktlintCheck
|
2023-07-30 15:50:04 +02:00
|
|
|
|
2023-07-10 21:02:14 +02:00
|
|
|
- name: Regular lint
|
2023-09-05 13:28:56 +02:00
|
|
|
run: ./gradlew app:lintOrangeDebug
|
2023-07-30 15:50:04 +02:00
|
|
|
|
2023-07-10 21:02:14 +02:00
|
|
|
- name: Test
|
2023-11-05 13:51:37 +01:00
|
|
|
run: ./gradlew app:testOrangeDebugUnitTest checks:test
|
2023-07-30 15:50:04 +02:00
|
|
|
|
2023-07-10 21:02:14 +02:00
|
|
|
- name: Build
|
2023-09-05 13:28:56 +02:00
|
|
|
run: ./gradlew app:buildOrangeDebug
|