Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alorma committed Jan 10, 2025
1 parent 49c685c commit c78c6c1
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,46 @@ jobs:
checksSummary: full
failOnError: true

ktlint:
name: Ktlint - Main
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17

- name: Ktlint - Main
run: ./gradlew ktlintCheck

- name: Fix path in logs
uses: richardrigutins/replace-in-files@v2.1.9
if: ${{ !cancelled() }}
with:
files: ${{ github.workspace }}/**/build/reports/ktlint/**/*.xml
search-text: ${{ github.workspace }}/
replacement-text: ''

- name: Publish ktlint results
if: ${{ !cancelled()}}
uses: gmazzo/publish-report-annotations@v1.11.3
with:
reports: ${{ github.workspace }}/**/build/reports/detekt/*.xml
checkName: Detekt
token: ${{ github.token }}
workflowSummary: true
warningsAsErrors: false
checksSummary: full
failOnError: true

build-lib-base:
name: Build base - Main
if: ${{ success() }}
needs: [ detekt ]
needs: [ detekt, ktlint ]
runs-on: macos-latest
steps:
- name: Check out code
Expand Down

0 comments on commit c78c6c1

Please sign in to comment.