Bump org.jetbrains.compose:org.jetbrains.compose.gradle.plugin #722
This file contains hidden or 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: build | |
env: | |
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false" | |
RUNNING_ON_CI: "true" | |
LC_ALL: C.UTF-8 | |
LANG: C.UTF-8 | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: Build and test | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Validate Gradle Wrapper | |
uses: gradle/actions/wrapper-validation@v4 | |
- name: Install JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: "17" | |
distribution: "temurin" | |
cache: "gradle" | |
check-latest: true | |
- name: Configure Gradle | |
run: | |
./gradlew help | |
./gradlew --version | |
- name: Build project | |
run: ./gradlew assemble --stacktrace | |
- name: Run tests | |
run: ./gradlew testAll --stacktrace | |
# TODO: switch to Kover | |
# - name: Create coverage report | |
# run: ./gradlew jacocoTestReportDefault | |
- name: ktlint | |
run: ./gradlew ktlint | |
- name: detekt | |
run: ./gradlew detekt | |
# Publish packages | |
- name: Publish package | |
if: startsWith(github.ref, 'refs/tags/v-') | |
run: ./gradlew publishToMavenCentral | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.PUBLICATION_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.PUBLICATION_PASSWORD }} | |
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} | |
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY_RING }} | |
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} | |
- name: Bundle the build report | |
if: failure() | |
run: find . -type d -name 'reports' | zip -@ -r build-report.zip | |
- name: Upload the build report | |
if: failure() | |
uses: actions/upload-artifact@master | |
with: | |
name: build-report | |
path: build-report.zip |