Skip to content

Commit

Permalink
🌱 Add step to validate the dist folder content (#84)
Browse files Browse the repository at this point in the history
* ci: add step to validate the dist folder content

Signed-off-by: Ulises Gascón <ulisesgascongonzalez@gmail.com>

* chore: update dist folder

Signed-off-by: Ulises Gascón <ulisesgascongonzalez@gmail.com>

* chore: linting

Signed-off-by: Ulises Gascón <ulisesgascongonzalez@gmail.com>

---------

Signed-off-by: Ulises Gascón <ulisesgascongonzalez@gmail.com>
  • Loading branch information
UlisesGascon authored Jun 25, 2024
1 parent ea0d84f commit 37cbd35
Show file tree
Hide file tree
Showing 4 changed files with 289 additions and 49 deletions.
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
Loading

0 comments on commit 37cbd35

Please sign in to comment.