File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 2424
2525 - name : Setup pnpm
2626 uses : pnpm/action-setup@eae0cfeb286e66ffb5155f1a79b90583a127a68b # v2.4.1
27- with :
28- version : 8
27+ # Version is automatically read from package.json packageManager field
2928
3029 - name : Get pnpm store directory
3130 id : pnpm-cache
6564 # Check PHP syntax
6665 if command -v php &> /dev/null; then
6766 echo "Checking PHP syntax..."
68- find . -name "*.php" -not -path "./vendor/*" -not -path "./node_modules/*" -exec php -l {} \; | grep -v "No syntax errors"
67+ ERRORS=$(find . -name "*.php" -not -path "./vendor/*" -not -path "./node_modules/*" -exec php -l {} \; 2>&1 | grep -v "No syntax errors" || true)
68+ if [ -n "$ERRORS" ]; then
69+ echo "PHP syntax errors found:"
70+ echo "$ERRORS"
71+ exit 1
72+ else
73+ echo "✅ All PHP files have valid syntax"
74+ fi
6975 else
7076 echo "PHP not installed, skipping syntax check"
7177 fi
8187 echo "- \`build/index.tsx.asset.php\`" >> $GITHUB_STEP_SUMMARY
8288
8389 - name : Upload build artifacts
84- uses : actions/upload-artifact@c24449f33cd45d4826c6702db7e49f7cdb9b551d # v3.2.1-node20
90+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
8591 with :
8692 name : build-artifacts
8793 path : build/
Original file line number Diff line number Diff line change 3131
3232 - name : Setup pnpm
3333 uses : pnpm/action-setup@eae0cfeb286e66ffb5155f1a79b90583a127a68b # v2.4.1
34- with :
35- version : 8
34+ # Version is automatically read from package.json packageManager field
3635
3736 - name : Install dependencies
3837 run : pnpm install --frozen-lockfile
You can’t perform that action at this time.
0 commit comments