Skip to content

Update spotless to v7.0.1 #2207

Update spotless to v7.0.1

Update spotless to v7.0.1 #2207

Workflow file for this run

name: CI
on:
merge_group:
pull_request: { }
workflow_dispatch: { }
push:
branches:
- 'main'
- "renovate/**"
tags-ignore:
- '**'
jobs:
Validate-Gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/setup
with:
encryption_key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@0bdd871935719febd78681f197cd39af5b6e16a6 # v4
Build:
runs-on: ubuntu-latest
needs: [ Validate-Gradle ]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/setup
with:
encryption_key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Build
run: ./gradlew assemble
Danger:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
name: "Run Danger"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Danger
uses: danger/kotlin@9f3eb34dc1a5d5d69bddc64441b2eabd96462864 # 1.3.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lint:
runs-on: ubuntu-latest
needs: [ Build ]
strategy:
matrix:
command: [ detektMain, detektTest, spotlessCheck, lint, checkSortDependencies ]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/setup
with:
encryption_key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Lint
run: ./gradlew ${{ matrix.command }}
Tests:
runs-on: ubuntu-latest
needs: [ Build ]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/setup
with:
encryption_key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Run Unit Tests
run: ./gradlew kover-aggregate:koverXmlReport --no-build-cache
- name: Codecov
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
files: ./kover-aggregate/build/reports/kover/report.xml
token: ${{ secrets.CODE_COV_TOKEN }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@62516aa379bff6370c95fd5894d5a27fb6619d9b # v5
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/reports/kover/report.xml'