Skip to content

Commit

Permalink
add new step
Browse files Browse the repository at this point in the history
  • Loading branch information
laysabit committed Jun 11, 2024
1 parent 9c7a869 commit 4f09140
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/diff-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,13 @@ jobs:
- name: Checkout source branch and diff quality
run: |
git checkout ${{ github.head_ref }}
diff-quality --violations=sqlfluff --compare-branch=origin/master --fail-under=95
diff-quality --violations=sqlfluff --compare-branch=origin/master --fail-under=95 > diff-quality-output.txt
- name: Check diff-quality output
run: | # the if is for cases diff quality tries to lint folders that are supposed to be ignored
if [ ! -s diff-quality-output.txt ]; then
echo "diff-quality output is empty. Success."
else
echo "Diff-quality:"
cat diff-quality-output.txt
fi

0 comments on commit 4f09140

Please sign in to comment.