From 97c256e1c073fbec6f4352040e039685b53e5858 Mon Sep 17 00:00:00 2001 From: markhuot Date: Tue, 31 Oct 2023 11:20:10 -0400 Subject: [PATCH] removing dependency on compiled files --- .github/workflows/php.yml | 10 ++++------ src/Pest.php | 8 -------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 58c19e8..6e5207c 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -65,16 +65,14 @@ jobs: run: | composer install --prefer-dist --no-progress ./bin/post-clone.sh - cat config/app.php - name: Copy config files - run: mkdir -p ./storage && cp -r ./stubs/config ./config + run: | + mkdir -p ./storage + cp -r ./stubs/config ./config - name: Install Craft - run: ./src/bin/craft install --username=admin --email=michael@bluth.com --password=secret --siteName=Pest --siteUrl=http://localhost:8080 --language=en-US - - - name: Generate compiled classes - run: ./src/bin/craft pest/ide/generate-mixins + run: ./src/bin/craft install --interactive=0 --username=admin --email=michael@bluth.com --password=secret --siteName=Pest --siteUrl=http://localhost:8080 --language=en-US - name: Run PHPStan run: ./vendor/bin/phpstan analyse src diff --git a/src/Pest.php b/src/Pest.php index c1ef424..d9d56ff 100644 --- a/src/Pest.php +++ b/src/Pest.php @@ -57,13 +57,5 @@ function (DefineBehaviorsEvent $event) { $event->behaviors[] = FieldTypeHintBehavior::class; } ); - - Event::on( - Fields::class, - Fields::EVENT_AFTER_SAVE_FIELD, - function () { - (new RenderCompiledClasses)->handle(); - } - ); } }