-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only load classes and function files (#10)
- Preloader Failing on deprecated cakephp core classes #9 - Adds new --cli option - Only loads Classes and function files now - Adds docker test to ensure php-fpm/cakephp loads with opcache preload enabled.
- Loading branch information
1 parent
1e89139
commit e5139a7
Showing
10 changed files
with
228 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Merge | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
run: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
operating-system: [ ubuntu-20.04 ] | ||
php-versions: ['8.0'] | ||
|
||
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: mbstring, intl, xdebug | ||
|
||
- name: PHP Version | ||
run: php -v | ||
|
||
- name: Install dependencies | ||
if: steps.composer-cache.outputs.cache-hit != 'true' | ||
run: | | ||
composer validate | ||
composer install --prefer-dist --no-progress --no-suggest | ||
- name: Test | ||
run: vendor/bin/phpunit | ||
|
||
- name: Report Coverage | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
composer check | ||
echo ${{ matrix.php-versions }} | ||
export CODECOVERAGE=1 && vendor/bin/phpunit --verbose --coverage-clover=clover.xml | ||
vendor/bin/php-coveralls --coverage_clover=clover.xml -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM cnizzardini/php-fpm-alpine:8.0-latest | ||
|
||
ARG BRANCH=main | ||
|
||
COPY php.ini /usr/local/etc/php/php.ini | ||
|
||
WORKDIR /srv/app | ||
|
||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
||
RUN composer create-project --prefer-dist --no-interaction cakephp/app:~4.2 . | ||
RUN composer require cnizzardini/cakephp-preloader:$BRANCH | ||
RUN bin/cake plugin load CakePreloader | ||
RUN bin/cake preloader | ||
|
||
CMD ["php-fpm"] |
Oops, something went wrong.