build(deps): bump plugin.serialization from 2.3.21 to 2.4.0 #54
This file contains hidden or 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: CI | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches-ignore: [main] # feature branches get CI too | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Tests & Coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - uses: gradle/actions/setup-gradle@v6 | |
| with: | |
| cache-read-only: ${{ github.ref != 'refs/heads/main' }} | |
| - name: Run tests | |
| run: ./gradlew test | |
| - name: Verify coverage ≥ 80% | |
| run: ./gradlew koverVerify | |
| - name: Generate coverage report | |
| if: always() | |
| run: ./gradlew koverHtmlReport | |
| - name: Upload coverage report | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-report | |
| path: tessera-core/build/reports/kover/html/ | |
| retention-days: 7 | |
| quality: | |
| name: Code Quality | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - uses: gradle/actions/setup-gradle@v6 | |
| with: | |
| cache-read-only: ${{ github.ref != 'refs/heads/main' }} | |
| - name: ktlint — formatting | |
| run: ./gradlew ktlintCheck | |
| - name: detekt — static analysis | |
| run: ./gradlew detekt | |
| - name: Upload detekt report | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: detekt-report | |
| path: '**/build/reports/detekt/' | |
| retention-days: 7 |