Skip to content

Commit add17c3

Browse files
RUM-12387: Add android sdk schema generator check
1 parent bf49abe commit add17c3

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/android-sdk.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: android-sdk
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
generate-models:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
11+
with:
12+
repository: 'DataDog/dd-sdk-android'
13+
ref: aleksandr-gringauz/RUM-12387/pass-ref-from-gradle-properties
14+
15+
- name: Setup Java 17
16+
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e
17+
with:
18+
distribution: 'temurin'
19+
java-version: 17
20+
21+
- name: Cache NDK
22+
id: cache-ndk
23+
uses: actions/cache@v4
24+
with:
25+
path: /usr/local/lib/android/sdk/ndk/28.0.13004108
26+
key: android-ndk-28.0.13004108
27+
28+
- name: Setup Android SDK
29+
uses: android-actions/setup-android@9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407 # v3.2.1
30+
with:
31+
packages: 'platforms;android-36 build-tools;36.0.0 platform-tools ndk;28.0.13004108'
32+
33+
- name: Clone RUM schema
34+
run: ./gradlew :features:dd-sdk-android-rum:cloneRumSchema -Pdd.rum.schema.ref="${{ github.head_ref }}"
35+
36+
- name: Verify RUM models
37+
run: ./gradlew :features:dd-sdk-android-rum:generateRumModelsFromJson
38+
39+

0 commit comments

Comments
 (0)