Skip to content

Commit

Permalink
Borrow all the files
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Jun 17, 2023
1 parent 5beee57 commit 8cd97f8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:

- name: Sanity check package.xml and install ImageMagick
run: |
bash validate_package.sh
bash validate-package.sh
for file in tests/*.phpt; do grep $(basename $file) package.xml >/dev/null || (echo "Missing $file from package.xml" ; exit 1); done
12 changes: 12 additions & 0 deletions validate-package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

VALIDATE_OUTPUT=`pear package-validate`

echo "VALIDATE_OUTPUT is $VALIDATE_OUTPUT"

if [[ "$VALIDATE_OUTPUT" == *"Error"* ]]; then
echo "Package appears to contain an error"
exit 255
fi

echo "Package appears valid"

0 comments on commit 8cd97f8

Please sign in to comment.