-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (38 loc) · 1.42 KB
/
buildtestapks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build Test Apks
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
# Allow precise monitoring of the save/restore of Gradle User Home by `gradle-build-action`
# See https://github.com/marketplace/actions/gradle-build-action?version=v2.1.1#cache-debugging-and-analysis
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup machine
uses: ./.github/actions/commonSetup
with:
gradleCacheKey: ${{ secrets.GCP_ACCOUNT }}
gradleCachePush: true
- name: build test artifacts
id: gradle-build-test-artifacts
run: ./gradlew packageDebugAndroidTest --info --stacktrace --scan
env:
GRADLE_CACHE_KEY: ${{ secrets.GCP_ACCOUNT }}
GRADLE_CACHE_PUSH: true
- name: Build Scan for Test
shell: bash
run: echo "::notice title=Build and Test scan::${{ steps.gradle-build-test-artifacts.outputs.build-scan-url }}"
- name: Upload apks
uses: actions/upload-artifact@v2
with:
name: test-apks-${{ runner.os }}
path: ./**/*.apk