aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMenny Even Danan <menny@evendanan.net>2020-02-01 05:33:49 +0000
committerMenny Even Danan <menny@evendanan.net>2020-02-01 06:33:41 +0000
commit2a396cc5d671c8b15b72fe51766365cf2365ea85 (patch)
tree7a2b562aa56087d5207045506a7828bb8e323894 /.github/workflows
parent0fd7d180f0de2c206590d4ee8faad295e5e0c794 (diff)
downloadAnySoftKeyboard-2a396cc5d671c8b15b72fe51766365cf2365ea85.tar.gz
AnySoftKeyboard-2a396cc5d671c8b15b72fe51766365cf2365ea85.tar.bz2
re-sharding tests
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/checks.yml50
1 files changed, 36 insertions, 14 deletions
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index e96cd9c44..765ab859a 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -68,28 +68,55 @@ jobs:
container: menny/ndk_ask:1.13.1
strategy:
matrix:
- index: [0, 1, 2, 3]
- groups_count: [4]
+ index: [0, 1]
+ groups_count: [2]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: .github_cache_gradle/
- key: tests-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/*.gradle') }}-${{ hashFiles('buildSrc/**/*.java') }}
+ key: tests-shards-gradle-${{ matrix.index }}-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/*.gradle') }}-${{ hashFiles('buildSrc/**/*.java') }}
restore-keys: |
- tests-gradle-
+ tests-shards-gradle-
- name: tests
uses: ./.github/actions/test-shard-run
with:
index: ${{ matrix.index }}
groups_count: ${{ matrix.groups_count }}
- module: "ime:app:"
+ module: ":ime:app:"
+ extra_args: "-PexcludeTestClasses=\"**/*AllSdkTest*\""
- uses: ./.github/actions/codecov
- uses: ./.github/actions/collect-reports
if: always()
with:
- file_pattern: "TEST-*.xml"
+ file_pattern: "**/build/reports/tests/**/*"
+ - uses: actions/upload-artifact@v1.0.0
+ if: always()
+ with:
+ name: app-tests_${{ matrix.index }}
+ path: collected_reports
+
+ app-all-sdks-tests:
+ needs: [setup]
+ runs-on: ubuntu-18.04
+ container: menny/ndk_ask:1.13.1
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/cache@v1
+ with:
+ path: .github_cache_gradle/
+ key: tests-all-sdks-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/*.gradle') }}-${{ hashFiles('buildSrc/**/*.java') }}
+ restore-keys: |
+ tests-all-sdks-gradle-
+ - name: tests
+ uses: ./.github/actions/test-shard-run
+ with:
+ index: 0
+ groups_count: 1
+ module: ":ime:app:"
+ extra_args: "--tests=*AllSdkTest*"
+ - uses: ./.github/actions/codecov
- uses: ./.github/actions/collect-reports
if: always()
with:
@@ -97,7 +124,7 @@ jobs:
- uses: actions/upload-artifact@v1.0.0
if: always()
with:
- name: app-tests_${{ matrix.index }}
+ name: app-less-tests
path: collected_reports
app-less-tests:
@@ -123,17 +150,12 @@ jobs:
- uses: ./.github/actions/collect-reports
if: always()
with:
- file_pattern: "TEST-*.xml"
- - uses: ./.github/actions/collect-reports
- if: always()
- with:
file_pattern: "**/build/reports/tests/**/*"
- uses: actions/upload-artifact@v1.0.0
if: always()
with:
name: app-less-tests
path: collected_reports
-
deploy-dry-run:
if: github.event_name == 'pull_request'
needs: [setup]
@@ -158,7 +180,7 @@ jobs:
deploy_canary_ime_for_master:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
- needs: [checks, app-tests-shards, app-less-tests]
+ needs: [checks, app-tests-shards, app-all-sdks-tests, app-less-tests]
runs-on: ubuntu-18.04
container: menny/ndk_ask:1.13.1
steps:
@@ -185,7 +207,7 @@ jobs:
deploy_release_ime:
if: github.event_name == 'push' && startsWith(github.ref, 'release-branch-v')
- needs: [checks, app-tests-shards, app-less-tests]
+ needs: [checks, app-tests-shards, app-all-sdks-tests, app-less-tests]
runs-on: ubuntu-18.04
container: menny/ndk_ask:1.13.1
steps: