Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 11 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,12 @@ jobs:
with:
distribution: 'zulu'
java-version: 17
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/**.gradle', '**/**.gradle.kts', '**/gradle/wrapper/gradle-wrapper.properties', '**/buildSrc/src/main/kotlin/**.kt') }}
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Check style
run: ./gradlew ktlintCheck
uses: gradle/gradle-build-action@v2
with:
arguments: ktlintCheck

unit-tests:
name: Unit tests
Expand All @@ -56,14 +52,10 @@ jobs:
with:
distribution: 'zulu'
java-version: 17
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/**.gradle', '**/**.gradle.kts', '**/gradle/wrapper/gradle-wrapper.properties', '**/buildSrc/src/main/kotlin/**.kt') }}
- name: Unit tests
run: ./gradlew test
uses: gradle/gradle-build-action@v2
with:
arguments: test

instrumentation-tests:
name: Instrumentation tests
Expand All @@ -79,12 +71,8 @@ jobs:
with:
distribution: 'zulu'
java-version: 17
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/**.gradle', '**/**.gradle.kts', '**/gradle/wrapper/gradle-wrapper.properties', '**/buildSrc/src/main/kotlin/**.kt') }}
- name: Gradle cache
uses: gradle/gradle-build-action@v2
- name: AVD cache
uses: actions/cache@v2
id: avd-cache
Expand Down Expand Up @@ -123,14 +111,10 @@ jobs:
with:
distribution: 'zulu'
java-version: 17
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/**.gradle', '**/**.gradle.kts', '**/gradle/wrapper/gradle-wrapper.properties', '**/buildSrc/src/main/kotlin/**.kt') }}
- name: Build
run: ./gradlew app:assemble
uses: gradle/gradle-build-action@v2
with:
arguments: app:assemble
- uses: actions/upload-artifact@v2
if: matrix.os == 'ubuntu-latest'
with:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@ jobs:
with:
distribution: 'zulu'
java-version: 17
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/**.gradle', '**/**.gradle.kts', '**/gradle/wrapper/gradle-wrapper.properties', '**/buildSrc/src/main/kotlin/**.kt') }}
- name: Build APK
run: ./gradlew app:assembleProdRelease
uses: gradle/gradle-build-action@v2
with:
arguments: app:assembleProdRelease
- name: Create Release
uses: ncipollo/release-action@v1
with:
Expand Down