Skip to content

Commit

Permalink
ci(sqlgen): check on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba committed Oct 30, 2024
1 parent 36c85e3 commit c4b0a3e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/check-on-pr-sqlgen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint rolldebee/sqlgen

on:
pull_request:
branches:
- main
paths:
- "sqlgen/**/*.kt"
- "sqlgen/**/*.kts"
- "!sqlgen/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 "sqlgen/**/*.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

0 comments on commit c4b0a3e

Please sign in to comment.