Skip to content

Commit

Permalink
ci: add step to validate the dist folder content
Browse files Browse the repository at this point in the history
Signed-off-by: Ulises Gascón <ulisesgascongonzalez@gmail.com>
  • Loading branch information
UlisesGascon committed Jun 21, 2024
1 parent ea0d84f commit 3c861a2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/code_health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,16 @@ jobs:
run: npm run test:coverage

- name: Build
run: npm run build
run: npm run build

- name: Check dist directory
run: |
FILES=$(git status -s dist/)
if [ -n "$FILES" ]; then
echo "You need to include the changes in the dist folder, execute: npm run build and commit the changes in the dist folder"
echo "Uncommitted files:"
echo "$FILES"
echo "Diff content:"
git diff dist/
exit 1
fi

0 comments on commit 3c861a2

Please sign in to comment.