chore(deps): update plugin org.jetbrains.kotlin.android to v2 #340
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 & Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref_name != 'main' }} | |
jobs: | |
build-test: | |
name: Build & Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
# Set the fetch-depth > 1 or set to 0 for codecov upload detection | |
fetch-depth: 2 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: 21 | |
cache: "gradle" | |
- name: Build with Gradle | |
run: ./gradlew build --no-daemon | |
- name: Run tests | |
run: ./gradlew test --no-daemon | |
- name: Lint with Gradle | |
run: ./gradlew lint --no-daemon | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4.6.0 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |