Skip to content

Commit 01180f4

Browse files
committed
Update quality assurance workflow to include ktlint checks
Signed-off-by: James Bradlee <[email protected]>
1 parent aff626d commit 01180f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/quality-assurance.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ jobs:
3535
uses: ./.github/actions/setup-ktlint
3636
- run: |
3737
if [[ "${{ github.event_name }}" == "push" ]]; then
38-
git diff --name-only --relative --color never ${{ github.event.before }} ${{ github.event.after }} -- '*.kt' '*.kts'
38+
git diff --name-only --relative ${{ github.event.before }} ${{ github.event.after }} -- '*.kt' '*.kts'
3939
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
40-
ktlint --relative $(gh pr diff --name-only --color never ${{ github.event.number }} | grep -E "\.kts?$" | xargs printf -- '%s\n' | tr '\n' ' ')
40+
args=$(gh pr diff --name-only ${{ github.event.number }} | grep -E "\.kts?$" | xargs printf -- '%s\n' | tr '\n' ' ')
41+
ktlint --relative $args
4142
fi
4243
env:
4344
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)