chore(deps): update kotlin monorepo to v2.0.21 #1694
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: Build Project | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Write Gradle build properties to `~/.gradle/gradle.properties` | |
run: | | |
mkdir -p ~/.gradle | |
printf "org.gradle.jvmargs=-Xmx3G -XX:+UseParallelGC\n" >> ~/.gradle/gradle.properties | |
shell: bash | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
- uses: gradle/actions/wrapper-validation@v4 | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: ./gradlew currentVersion | |
- run: ./gradlew projectCodestyle --scan | |
- run: ./gradlew check --scan | |
- run: ./gradlew projectCoverage --scan | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Upload test results | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-results | |
path: "${{ github.workspace }}/**/build/reports/tests" | |
- name: Upload jacoco report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jacoco-report | |
path: "${{ github.workspace }}/**/build/reports/jacoco" | |
- run: ./gradlew publishToMavenLocal | |
- run: ./gradlew publishPlugins --dry-run | |
- run: git diff --exit-code | |
build-all-sample-android-projects: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
gradle: [ current, release-candidate ] | |
task: [ build, projectTest, projectLint, projectCodeStyle, projectCoverage, issueLinksReport ] | |
name: (Android) Gradle version ${{ matrix.gradle }}, task ${{ matrix.task }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Write Gradle build properties to `~/.gradle/gradle.properties` | |
run: | | |
mkdir -p ~/.gradle | |
printf "org.gradle.jvmargs=-Xmx3G -XX:+UseParallelGC\n" >> ~/.gradle/gradle.properties | |
shell: bash | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
- name: Run ${{ matrix.task }} | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
gradle-version: ${{ matrix.gradle }} | |
- name: Run build in a subdirectory | |
working-directory: sample/android | |
run: gradle ${{ matrix.task }} --stacktrace | |
build-all-sample-kotlin-projects: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
gradle: [ current, release-candidate ] | |
task: [ build, projectTest, projectCodeStyle, projectCoverage, issueLinksReport ] | |
name: (Kotlin) Gradle ${{ matrix.gradle }}, task ${{ matrix.task }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Write Gradle build properties to `~/.gradle/gradle.properties` | |
run: | | |
mkdir -p ~/.gradle | |
printf "org.gradle.jvmargs=-Xmx3G -XX:+UseParallelGC\n" >> ~/.gradle/gradle.properties | |
shell: bash | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
- name: Run ${{ matrix.task }} | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
gradle-version: ${{ matrix.gradle }} | |
- name: Run build in a subdirectory | |
working-directory: sample/kotlin | |
run: gradle ${{ matrix.task }} --stacktrace |