Skip to content

Commit 6592d43

Browse files
committed
ANDROID-16201/update-api-34: Update tests using "shared-workflows"
1 parent eeef97d commit 6592d43

File tree

1 file changed

+21
-31
lines changed

1 file changed

+21
-31
lines changed

.github/workflows/tests.yml

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,23 @@
1-
name: Tests
2-
on: pull_request
3-
jobs:
4-
test:
5-
runs-on: ubuntu-latest
6-
steps:
7-
- name: Checkout
8-
uses: actions/[email protected]
9-
10-
- name: Set up JDK 11
11-
uses: actions/setup-java@v2
12-
with:
13-
distribution: 'temurin'
14-
java-version: '11'
1+
name: "Tests"
2+
on:
3+
pull_request:
4+
workflow_dispatch:
155

16-
## Build all our Build Types at once ##
17-
- name: Build all artifacts
18-
id: buildAllApks
19-
uses: eskatos/[email protected]
20-
with:
21-
gradle-version: current
22-
wrapper-cache-enabled: false
23-
dependencies-cache-enabled: false
24-
configuration-cache-enabled: false
25-
arguments: assembleRelease
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
269

27-
- name: Run checks
28-
if: success() || failure()
29-
run: ./gradlew check
30-
31-
- name: Run Detekt
32-
if: success() || failure()
33-
run: ./gradlew detekt
10+
jobs:
11+
tests:
12+
uses: Telefonica/android-shared-workflows/.github/workflows/[email protected]
13+
with:
14+
emulators-number: 0
15+
assemble-tasks: 'assembleRelease'
16+
check-tasks: 'check detekt'
17+
android-tests-tasks: ''
18+
artifacts-paths: |
19+
build/reports/detekt/detekt-report.html
20+
artifacts-paths-to-compress: |
21+
unit-tests-report=app/build/reports/tests/testReleaseUnitTest
22+
detekt-reports=build/reports/detekt
23+
secrets: inherit

0 commit comments

Comments
 (0)