mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 12:31:52 +01:00
Combine build and test tasks in workflows
This commit is contained in:
parent
2761d27aaa
commit
4be9b03ac6
9
.github/workflows/build_pull_request.yml
vendored
9
.github/workflows/build_pull_request.yml
vendored
@ -34,12 +34,7 @@ jobs:
|
|||||||
mkdir -p ~/.gradle
|
mkdir -p ~/.gradle
|
||||||
cp .github/runner-files/ci-gradle.properties ~/.gradle/gradle.properties
|
cp .github/runner-files/ci-gradle.properties ~/.gradle/gradle.properties
|
||||||
|
|
||||||
- name: Build app
|
- name: Build app and run unit tests
|
||||||
uses: gradle/gradle-command-action@v2
|
uses: gradle/gradle-command-action@v2
|
||||||
with:
|
with:
|
||||||
arguments: assembleStandardRelease
|
arguments: assembleStandardRelease testStandardReleaseUnitTest
|
||||||
|
|
||||||
- name: Run unit tests
|
|
||||||
uses: gradle/gradle-command-action@v2
|
|
||||||
with:
|
|
||||||
arguments: test
|
|
9
.github/workflows/build_push.yml
vendored
9
.github/workflows/build_push.yml
vendored
@ -35,15 +35,10 @@ jobs:
|
|||||||
mkdir -p ~/.gradle
|
mkdir -p ~/.gradle
|
||||||
cp .github/runner-files/ci-gradle.properties ~/.gradle/gradle.properties
|
cp .github/runner-files/ci-gradle.properties ~/.gradle/gradle.properties
|
||||||
|
|
||||||
- name: Build app
|
- name: Build app and run unit tests
|
||||||
uses: gradle/gradle-command-action@v2
|
uses: gradle/gradle-command-action@v2
|
||||||
with:
|
with:
|
||||||
arguments: assembleStandardRelease
|
arguments: assembleStandardRelease testStandardReleaseUnitTest
|
||||||
|
|
||||||
- name: Run unit tests
|
|
||||||
uses: gradle/gradle-command-action@v2
|
|
||||||
with:
|
|
||||||
arguments: test
|
|
||||||
|
|
||||||
# Sign APK and create release for tags
|
# Sign APK and create release for tags
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user