-
Notifications
You must be signed in to change notification settings - Fork 134
34 lines (32 loc) · 1.02 KB
/
api-level-lint.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
name: "Checks the SDK only using APIs from the targeted API level"
on:
workflow_dispatch:
push:
branches: [main, support/5.x.x]
pull_request:
branches: [main, support/5.x.x]
jobs:
lint-api-level:
runs-on: [self-hosted, 1ES.Pool=1es-ubuntu-msgraph-sdk-java-memory-latest-m]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
cache: gradle
- name: Setup Android SDK
uses: android-actions/[email protected]
- name: Add execution right to the script
run: chmod +x gradlew
working-directory: ./android
- name: Build SDK with Android project configuration
id: lint
run: ./gradlew --no-daemon build
working-directory: ./android
- name: Upload linting results
if: failure() && steps.lint.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: lint-report
path: ./android/build/reports