chore(misc): revamp #17
Workflow file for this run
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: Lint rolldebee/api | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "api/**/*.kt" | |
- "api/**/*.kts" | |
- "!api/README.md" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.4.0/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/ | |
- name: Lint using ktlint | |
run: | | |
ktlint --reporter=checkstyle,output=build/ktlint-report.xml "api/**/*.kt" | |
continue-on-error: true | |
- uses: yutailang0119/action-ktlint@v4 | |
with: | |
report-path: build/*.xml # Support glob patterns by https://www.npmjs.com/package/@actions/glob | |
continue-on-error: false # If annotations contain error of severity, action-ktlint exit 1. | |
permissions: | |
contents: read | |
pull-requests: read | |
checks: write |