Skip to content

Migrate to vanniktech maven publish #9863

Migrate to vanniktech maven publish

Migrate to vanniktech maven publish #9863

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
release:
types: [ released ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
gradle-test:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
with:
tool-cache: false
# keep android packages
android: false
- name: Checkout Branch
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
- uses: actions/cache@v4
with:
path: |
~/.m2/repository/org/robolectric
key: robolectric-${{ hashFiles('.github/fetch-robolectric-dependencies.sh') }}
restore-keys: |
robolectric-
- name: Fetch Robolectric dependencies
run: /bin/sh .github/fetch-robolectric-dependencies.sh
# Build the entire project, run the tests, and run all static analysis
- name: Gradle Build
run: ./gradlew assembleRelease check -x embrace-gradle-plugin-integration-tests:test --stacktrace
- name: Archive Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: test-results
path: '**/build/reports/tests/**'
- name: Run Kover Code Coverage
run: ./gradlew koverXmlReportRelease
- uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: embrace-android-sdk/build/reports/kover/reportRelease.xml