Skip to content

Commit

Permalink
[CI] Fix and display changed dist files in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Jan 13, 2025
1 parent ed474d2 commit 59a6efc
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,17 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn --immutable && yarn build
- name: Check if js dist files are current
id: changes
run: |
echo "STATUS=$(git status --porcelain)" >> $GITHUB_OUTPUT

- name: No changes found
if: steps.changes.outputs.STATUS == ''
run: |
echo "git status is clean"
- name: Changes were found
if: steps.changes.outputs.STATUS != ''
- name: Check if JS dist files are current
run: |
echo "JS dist files need to be rebuilt"
echo "${{ steps.changes.outputs.STATUS }}"
exit 1
if [[ -n $(git status --porcelain) ]]; then
echo "The Git workspace is unclean! Changes detected:"
git status --porcelain
git diff
exit 1
else
echo "The Git workspace is clean. No changes detected."
fi
tests-php-components:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 59a6efc

Please sign in to comment.