chore: kotlin 2.0-RC1 #209
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 and publish a snapshot | |
on: | |
push: | |
branches: | |
- master | |
- 'snapshot/*' | |
- 'kotlin-*' | |
paths-ignore: | |
- '**.md' | |
- '**.adoc' | |
- '**/.gitignore' | |
- './github/**' | |
- '!./github/workflow/snapshot.yml' | |
jobs: | |
unit-tests: | |
name: Unit tests | |
runs-on: macOS-latest | |
steps: | |
- name: Setup | |
uses: kosi-libs/kodein-internal-github-actions/setup@main | |
- name: Check | |
run: ./gradlew check | |
shell: bash | |
instrumentation-tests: | |
name: Instrumentation tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | |
uses: kosi-libs/kodein-internal-github-actions/setup@main | |
- name: Check with Android | |
uses: kosi-libs/kodein-internal-github-actions/checkWithAndroid@main | |
upload: | |
needs: | |
- unit-tests | |
- instrumentation-tests | |
runs-on: macOS-latest | |
env: | |
SONATYPE_USERNAME: ${{ secrets.sonatype_username }} | |
SONATYPE_PASSWORD: ${{ secrets.sonatype_password }} | |
steps: | |
- name: Setup | |
uses: kosi-libs/kodein-internal-github-actions/setup@main | |
- name: Gradle cache | |
uses: gradle/gradle-build-action@v3 | |
- name: Upload | |
run: ./gradlew publishAllPublicationsToOssrhStagingRepository -PgitRef=${{ github.ref }} -Psnapshot=true | |
shell: bash |