mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-19 10:12:36 +08:00
Update format-and-build.yml
This commit is contained in:
@@ -96,17 +96,24 @@ jobs:
|
||||
find .rector.cache -type f 2>/dev/null | wc -l
|
||||
ls -la .pint.cache 2>&1 || true
|
||||
echo
|
||||
echo "=== write-permission probe ==="
|
||||
touch .rector.cache/.probe && echo "wrote .probe ok" || echo "WRITE FAILED"
|
||||
ls -la .rector.cache/.probe 2>&1 || true
|
||||
rm -f .rector.cache/.probe
|
||||
echo "=== hunt for rector cache files anywhere reasonable ==="
|
||||
# The on-disk shape is XX/YY/HASH.php under a cache dir. Search broadly.
|
||||
find . /tmp "$HOME" -maxdepth 5 -type d -name '.rector.cache*' 2>/dev/null | head -20
|
||||
echo "--- any *.php cache files written under runner home ---"
|
||||
find "$HOME" -maxdepth 6 -type f -name '*.php' -newer /etc/hostname 2>/dev/null | grep -i rector | head -10
|
||||
echo
|
||||
echo "=== dry-run rector with --debug, capture tail ==="
|
||||
# Dry-run won't modify files; --debug prints per-file path. We just need to
|
||||
# see whether any cache writes happen / where rector thinks the cache lives.
|
||||
vendor/bin/rector process --dry-run --debug 2>&1 | tail -20 || true
|
||||
echo "--- .rector.cache after dry-run ---"
|
||||
find .rector.cache -type f 2>/dev/null | wc -l
|
||||
echo "=== dump resolved cache_dir from rector.php ==="
|
||||
# Tiny PHP probe — load rector.php and read back the CACHE_DIR parameter
|
||||
# that withCache() sets via SimpleParameterProvider.
|
||||
php -r '
|
||||
require __DIR__."/vendor/autoload.php";
|
||||
$rectorConfigBuilder = require __DIR__."/rector.php";
|
||||
$rectorConfigBuilder->__invoke(new \Rector\Config\RectorConfig());
|
||||
echo "CACHE_DIR=".var_export(
|
||||
\Rector\Configuration\Parameter\SimpleParameterProvider::provideStringParameter(\Rector\Configuration\Option::CACHE_DIR),
|
||||
true
|
||||
).PHP_EOL;
|
||||
' 2>&1 | tail -10 || true
|
||||
- name: Build assets
|
||||
run: npm run build
|
||||
- name: Pull changes
|
||||
|
||||
Reference in New Issue
Block a user