Repository navigation
47 lines (44 loc) · 1.54 KB
/
Copy pathrelease-pr.yml
File metadata and controls
47 lines (44 loc) · 1.54 KB
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
40
41
42
43
44
45
46
47
name: Validate Android Release PR
on:
pull_request:
branches: [master]
permissions:
contents: read
jobs:
validate:
if: startsWith(github.head_ref, 'release/') || startsWith(github.head_ref, 'hotfix/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '17'
cache: gradle
- name: Validate release identity and localized notes
run: python3 scripts/release_tool.py validate
- name: Test release tooling
run: >-
python3 -m unittest
scripts/test_release_tool.py
scripts/test_release_workflows.py
scripts/test_release_protection.py
- name: Test, lint, and assemble release outputs
run: ./gradlew test lint assembleRelease bundleRelease --no-daemon
- name: Verify assembled release identity
run: >-
python3 scripts/release_tool.py verify-build
--manifest app/build/intermediates/merged_manifests/release/processReleaseManifest/AndroidManifest.xml
--metadata app/build/intermediates/merged_manifests/release/processReleaseManifest/output-metadata.json
- uses: actions/upload-artifact@v6
if: always()
with:
name: release-pr-validation
path: |
app/build/reports/
app/build/outputs/apk/release/
app/build/outputs/bundle/release/
retention-days: 14