fix(deps): update dependency io.gitlab.arturbosch.detekt:detekt-gradle-plugin to v1.23.1 #1365
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@v3 | |
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@v3 | |
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@v3 | |
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@v3 | |
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 |