Set Maven Central publishing repository #781
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: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Configure JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: zulu | |
java-version: 19 | |
- name: Cache Gradle Dirs | |
uses: actions/cache@v3.0.11 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} | |
restore-keys: cache-gradle- | |
- name: Run Tests | |
uses: reactivecircus/android-emulator-runner@v2.27.0 | |
with: | |
api-level: 29 | |
emulator-build: 6110076 | |
script: ./gradlew -p library connectedCheck --stacktrace | |
env: | |
API_LEVEL: 29 | |
- 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@v3 | |
- name: Configure JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: zulu | |
java-version: 19 | |
- name: Cache Gradle Dirs | |
uses: actions/cache@v3.0.11 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} | |
restore-keys: cache-gradle- | |
- name: Run Tests | |
run: ./gradlew -p library test --stacktrace | |
- name: Stop Gradle | |
run: ./gradlew --stop | |
build-sample: | |
if: ${{ github.repository == 'MiSikora/laboratory' }} | |
name: Build sample | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Configure JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: zulu | |
java-version: 19 | |
- name: Cache Gradle Dirs | |
uses: actions/cache@v3.0.11 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} | |
restore-keys: cache-gradle- | |
- name: Assemble project | |
run: ./gradlew :samples:ci-check:assemble --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@v3 | |
- name: Configure JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: zulu | |
java-version: 19 | |
- name: Cache Gradle Dirs | |
uses: actions/cache@v3.0.11 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} | |
restore-keys: cache-gradle- | |
- name: Run Detekt | |
run: ./gradlew -p library detekt --stacktrace | |
- 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@v3 | |
- name: Configure JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: zulu | |
java-version: 19 | |
- name: Cache Gradle Dirs | |
uses: actions/cache@v3.0.11 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} | |
restore-keys: cache-gradle- | |
- name: Run Lint | |
run: ./gradlew -p library 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@v3 | |
- name: Configure JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: zulu | |
java-version: 19 | |
- name: Cache Gradle Dirs | |
uses: actions/cache@v3.0.11 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} | |
restore-keys: cache-gradle- | |
- name: Check ABI | |
run: ./gradlew -p library apiCheck --stacktrace | |
- name: Stop Gradle | |
run: ./gradlew --stop |