Skip to content

Commit

Permalink
Add GH action to verify all files in /client are also in /generated
Browse files Browse the repository at this point in the history
  • Loading branch information
MongoCaleb committed Jul 17, 2024
1 parent d712c59 commit 0074d1a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/verify-bluehawk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Verify Bluehawk Was Run

on: pull_request

jobs:
check-bluehawk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Ensure Bluehawk Script Was Run
working-directory: sync-todo/v2
run: |
dir1=client/
dir2=generated/
if [ `diff $dir1 $dir2 | grep -c 'Only'` == 0 ]
then
echo "Passed"
else
echo "Fail -- one or more files exist in /client that aren't in /generated."
exit 1
fi

0 comments on commit 0074d1a

Please sign in to comment.