Fix: Investigate initializer errors #167
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: Code analysis | |
on: | |
push: | |
branches: | |
- develop | |
- master | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "adopt" | |
java-version: 17 | |
- name: Save Gradle Caches | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches/ | |
key: gradle-caches-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
gradle-caches-${{ runner.os }}- | |
- name: Lint | |
run: ./gradlew lintAll | |
- name: Stop Gradle | |
run: ./gradlew --stop | |
detekt: | |
name: Detekt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "adopt" | |
java-version: 17 | |
- name: Save Gradle Caches | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches/ | |
key: gradle-caches-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
gradle-caches-${{ runner.os }}- | |
- name: Detekt | |
run: ./gradlew detektAll | |
- name: Stop Gradle | |
run: ./gradlew --stop | |
ktlint: | |
name: ktlint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "adopt" | |
java-version: 17 | |
- name: Save Gradle Caches | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches/ | |
key: gradle-caches-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
gradle-caches-${{ runner.os }}- | |
- name: ktlint | |
run: ./gradlew ktlintAll | |
- name: Stop Gradle | |
run: ./gradlew --stop | |
cpd: | |
name: CPD | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "adopt" | |
java-version: 17 | |
- name: Save Gradle Caches | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches/ | |
key: gradle-caches-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
gradle-caches-${{ runner.os }}- | |
- name: CPD | |
run: ./gradlew cpdAll | |
- name: Stop Gradle | |
run: ./gradlew --stop |