Skip to content

chore(deps): update actions/checkout digest to 8ade135 - autoclosed #1399

chore(deps): update actions/checkout digest to 8ade135 - autoclosed

chore(deps): update actions/checkout digest to 8ade135 - autoclosed #1399

Workflow file for this run

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@8ade135a41bc03ea155e62e844d188df1ea18608 # 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@v3
with:
distribution: 'temurin'
java-version: 20
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/gradle-build-action@v2
- 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@v3
with:
name: test-results
path: "${{ github.workspace }}/**/build/reports/tests"
- name: Upload jacoco report
uses: actions/upload-artifact@v3
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@8ade135a41bc03ea155e62e844d188df1ea18608 # 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@v3
with:
distribution: 'temurin'
java-version: 20
- name: Run ${{ matrix.task }}
uses: gradle/gradle-build-action@v2
with:
build-root-directory: sample/android
gradle-version: ${{ matrix.gradle }}
arguments: ${{ 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@8ade135a41bc03ea155e62e844d188df1ea18608 # 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@v3
with:
distribution: 'temurin'
java-version: 20
- name: Run ${{ matrix.task }}
uses: gradle/gradle-build-action@v2
with:
build-root-directory: sample/kotlin
gradle-version: ${{ matrix.gradle }}
arguments: ${{ matrix.task }} --stacktrace