Update dependency org.jetbrains.compose:compose-gradle-plugin to v1.4.1 #1016
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: CI | |
on: | |
# Only run push on main | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**/*.md' | |
# Always run on PRs | |
pull_request: | |
branches: [ main ] | |
merge_group: | |
concurrency: | |
group: 'ci-${{ github.event.merge_group.head_ref || github.head_ref }}-${{ github.workflow }}' | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: JDK ${{ matrix.ci_java_version }} / AGP ${{ matrix.ci_agp_version }} / Kotlin ${{ matrix.ci_kotlin_version }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ci_java_version: ['20'] | |
ci_kotlin_version: ['1.8.22'] | |
# TODO add back 8.1.0 after the CommonExtension generic problem is fixed | |
ci_agp_version: ['8.0.2'] | |
env: | |
DEP_OVERRIDES: 'true' | |
DEP_OVERRIDE_KOTLIN: '${{ matrix.ci_kotlin_version }}' | |
DEP_OVERRIDE_AGP: '${{ matrix.ci_agp_version }}' | |
DEP_OVERRIDE_JAVA: '${{ matrix.ci_java_version }}' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Gradle Wrapper Validation | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Install JDK ${{ matrix.ci_java_version }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.ci_java_version }} | |
- name: Build and run tests | |
id: gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: check --no-configuration-cache | |
- name: Print build scan url | |
if: always() | |
run: echo ${{ steps.gradle.outputs.build-scan-url }} | |
- name: (Fail-only) Upload build reports | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: reports | |
path: | | |
**/build/reports/** | |
publish-snapshot: | |
name: 'Publish snapshot (main only)' | |
if: github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
needs: 'build' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '20' | |
- name: Publish snapshot | |
if: github.repository == 'slackhq/slack-gradle-plugin' | |
run: ./gradlew publish -PmavenCentralUsername=${{ secrets.SONATYPEUSERNAME }} -PmavenCentralPassword=${{ secrets.SONATYPEPASSWORD }} -x dokkaHtml |