Update gradle/actions digest to d9c87d4 (#329) #1549
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: 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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: ./.github/actions/setup | |
with: | |
encryption_key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
- name: Gradle Wrapper Validation | |
uses: gradle/actions/wrapper-validation@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3 | |
Build: | |
runs-on: ubuntu-latest | |
needs: [ Validate-Gradle ] | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: ./.github/actions/setup | |
with: | |
encryption_key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
- name: Build | |
run: ./gradlew assemble | |
Lint: | |
runs-on: ubuntu-latest | |
needs: [ Build ] | |
strategy: | |
matrix: | |
command: [ detektMain, detektTest, spotlessCheck, lint, checkSortDependencies ] | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- 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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- 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@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | |
with: | |
files: ./kover-aggregate/build/reports/kover/report.xml | |
token: ${{ secrets.CODE_COV_TOKEN }} | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@db71d41eb79864e25ab0337e395c352e84523afe # v4 | |
if: success() || failure() # always run even if the previous step fails | |
with: | |
report_paths: '**/build/reports/kover/report.xml' |