Bump softprops/action-gh-release from 2.1.0 to 2.2.1 #840
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: Quality Check | |
on: | |
push: | |
branches: | |
- trunk | |
paths-ignore: | |
- 'library/docs/**' | |
- '**.md' | |
- '.github/CODEOWNERS' | |
pull_request: | |
paths-ignore: | |
- 'library/docs/**' | |
- '**.md' | |
- '.github/CODEOWNERS' | |
jobs: | |
android-tests: | |
if: ${{ github.repository == 'MiSikora/laboratory' }} | |
name: Android Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.2.2 | |
- name: Configure JDK | |
uses: actions/setup-java@v4.5.0 | |
with: | |
distribution: zulu | |
java-version: 21 | |
- name: Cache Gradle Dirs | |
uses: actions/cache@v4.1.2 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('**/*.gradle.kts', '**/gradle-wrapper.properties') }} | |
restore-keys: cache-gradle- | |
- name: Enable KVM | |
run: | | |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
sudo udevadm control --reload-rules | |
sudo udevadm trigger --name-match=kvm | |
- name: Run Tests | |
uses: reactivecircus/android-emulator-runner@v2.33.0 | |
with: | |
api-level: 29 | |
script: ./gradlew connectedCheck --stacktrace | |
- name: Stop Gradle | |
run: ./gradlew --stop | |
tests: | |
if: ${{ github.repository == 'MiSikora/laboratory' }} | |
name: JVM Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4.2.2 | |
- name: Configure JDK | |
uses: actions/setup-java@v4.5.0 | |
with: | |
distribution: zulu | |
java-version: 21 | |
- name: Cache Gradle Dirs | |
uses: actions/cache@v4.1.2 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('**/*.gradle.kts', '**/gradle-wrapper.properties') }} | |
restore-keys: cache-gradle- | |
- name: Run Tests | |
run: ./gradlew test --stacktrace | |
- name: Stop Gradle | |
run: ./gradlew --stop | |
detekt: | |
if: ${{ github.repository == 'MiSikora/laboratory' }} | |
name: Detekt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4.2.2 | |
- name: Configure JDK | |
uses: actions/setup-java@v4.5.0 | |
with: | |
distribution: zulu | |
java-version: 21 | |
- name: Cache Gradle Dirs | |
uses: actions/cache@v4.1.2 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('**/*.gradle.kts', '**/gradle-wrapper.properties') }} | |
restore-keys: cache-gradle- | |
- name: Run Detekt | |
run: ./gradlew detekt --stacktrace | |
- name: Run Samples Detekt | |
working-directory: ./samples | |
run: ./gradlew detekt | |
- name: Stop Gradle | |
run: ./gradlew --stop | |
spotless: | |
if: ${{ github.repository == 'MiSikora/laboratory' }} | |
name: Spotless | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4.2.2 | |
- name: Configure JDK | |
uses: actions/setup-java@v4.5.0 | |
with: | |
distribution: zulu | |
java-version: 21 | |
- name: Cache Gradle Dirs | |
uses: actions/cache@v4.1.2 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('**/*.gradle.kts', '**/gradle-wrapper.properties') }} | |
restore-keys: cache-gradle- | |
- name: Run Spotless | |
run: ./gradlew spotlessCheck --stacktrace | |
- name: Run Samples Spotless | |
working-directory: ./samples | |
run: ./gradlew spotlessCheck | |
- name: Stop Gradle | |
run: ./gradlew --stop | |
lint: | |
if: ${{ github.repository == 'MiSikora/laboratory' }} | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4.2.2 | |
- name: Configure JDK | |
uses: actions/setup-java@v4.5.0 | |
with: | |
distribution: zulu | |
java-version: 21 | |
- name: Cache Gradle Dirs | |
uses: actions/cache@v4.1.2 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('**/*.gradle.kts', '**/gradle-wrapper.properties') }} | |
restore-keys: cache-gradle- | |
- name: Run Lint | |
run: ./gradlew lint --stacktrace | |
- name: Stop Gradle | |
run: ./gradlew --stop | |
binary-compatibility: | |
if: ${{ github.repository == 'MiSikora/laboratory' }} | |
name: Binary compatibility | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4.2.2 | |
- name: Configure JDK | |
uses: actions/setup-java@v4.5.0 | |
with: | |
distribution: zulu | |
java-version: 21 | |
- name: Cache Gradle Dirs | |
uses: actions/cache@v4.1.2 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('**/*.gradle.kts', '**/gradle-wrapper.properties') }} | |
restore-keys: cache-gradle- | |
- name: Check ABI | |
run: ./gradlew apiCheck --stacktrace | |
- name: Stop Gradle | |
run: ./gradlew --stop |