Skip to content

fix(deps): update dependency org.robolectric:robolectric to v4.14.1 #73

fix(deps): update dependency org.robolectric:robolectric to v4.14.1

fix(deps): update dependency org.robolectric:robolectric to v4.14.1 #73

name: Build and test
on:
pull_request:
branches:
[ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: setup JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Cache Gradle
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run ktlintFormat on the codebase
run: ./gradlew ktlintFormat
- name: Run ktlintCheck on the codebase
run: ./gradlew ktlintCheck
- name: Run Unit Tests
run: ./gradlew clean test jacocoTestReport
- name: Run debug Build
run: ./gradlew assembleDebug
- name: Upload test results (XML)
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: '**/build/test-results/test*UnitTest/**.xml'
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: "data/build/reports/jacoco/jacoco.xml"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}