Skip to content

add stage env selection option #398

add stage env selection option

add stage env selection option #398

Workflow file for this run

name: Android CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "*" ]
permissions:
contents: read
packages: write
env:
GIT_USERNAME: "dolbyio-gh-bot"
jobs:
Validate-Build-And-Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Validate
env:
GIT_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew spotlessCheck
./gradlew lint
./gradlew assembleDebug --info
- name: Run unit tests
env:
GIT_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew clean :uikit:testDebugUnitTest --info