Update dependency androidx.compose:compose-bom to v2024 #1068
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cinemax CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
validation: | |
name: Validation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
analyze-code: | |
needs: validation | |
name: Analyze code | |
runs-on: ubuntu-latest | |
env: | |
CINEMAX_API_KEY: ${{ secrets.CINEMAX_API_KEY }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: 17 | |
cache: gradle | |
- name: Run spotless | |
run: ./gradlew spotlessCheck | |
- name: Run detekt | |
run: ./gradlew detekt | |
- name: Run lint | |
run: ./gradlew :app:lint | |
tests: | |
needs: analyze-code | |
name: Tests | |
runs-on: ubuntu-latest | |
env: | |
CINEMAX_API_KEY: ${{ secrets.CINEMAX_API_KEY }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: 17 | |
cache: gradle | |
- name: Run tests | |
run: ./gradlew test | |
build-debug: | |
needs: tests | |
name: Build debug | |
runs-on: ubuntu-latest | |
env: | |
CINEMAX_API_KEY: ${{ secrets.CINEMAX_API_KEY }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: 17 | |
cache: gradle | |
- name: Assemble debug | |
run: ./gradlew :app:assembleDebug | |
build-release: | |
needs: tests | |
name: Build release | |
runs-on: ubuntu-latest | |
env: | |
CINEMAX_API_KEY: ${{ secrets.CINEMAX_API_KEY }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: 17 | |
cache: gradle | |
- name: Assemble release | |
run: ./gradlew :app:assembleRelease |