We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12e4531 commit d157bd5Copy full SHA for d157bd5
.github/workflows/haskell.yml
@@ -630,3 +630,18 @@ jobs:
630
echo "Commit $TAG was not found on the master-artifacts branch of formal-ledger-specifications."
631
exit 1
632
}
633
+ undefined-check:
634
+ name: Check that there are no additions of `undefined`s in the PR diff
635
+ runs-on: ubuntu-latest
636
+ if: ${{ github.base_ref != '' && github.ref != '' }} # Only true for PRs
637
+
638
+ steps:
639
+ - uses: actions/checkout@v4
640
+ - name: Check for `undefined`s in the diffs
641
+ run: |
642
+ PR_TARGET=${{ github.base_ref }}
643
+ git fetch origin -n --refmap= +$PR_TARGET:pr-target
644
+ if git diff pr-target '*.hs' | grep '^\+.*undefined'; then
645
+ echo 'The diff must not contain any `undefined` values'
646
+ false
647
+ fi
0 commit comments