Skip to content

[CI] Fix and display changed dist files in the CI #2503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading