fix(deps): update kotlin monorepo to v2.1.0 #71
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 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 }} |