Skip to content

Commit

Permalink
removing dependency on compiled files
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Oct 31, 2023
1 parent 10504d9 commit 97c256e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 protected] --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 protected] --password=secret --siteName=Pest --siteUrl=http://localhost:8080 --language=en-US

- name: Run PHPStan
run: ./vendor/bin/phpstan analyse src
Expand Down
8 changes: 0 additions & 8 deletions src/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,5 @@ function (DefineBehaviorsEvent $event) {
$event->behaviors[] = FieldTypeHintBehavior::class;
}
);

Event::on(
Fields::class,
Fields::EVENT_AFTER_SAVE_FIELD,
function () {
(new RenderCompiledClasses)->handle();
}
);
}
}

0 comments on commit 97c256e

Please sign in to comment.