-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Update docker and test configs #2678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
37cacb9
scripts added to composer;
hans-thomas 7cf995d
Docker configuration updated;
hans-thomas c71c2ec
Update Dockerfile
hans-thomas 10e1646
Reformat build-ci;
hans-thomas a35d382
Remove double quotes;
hans-thomas ff1c906
Two new scripts;
hans-thomas b00e350
Update build-ci.yml
hans-thomas 56beea9
Update Dockerfile
hans-thomas 288b78d
Double quotes workflows values;
hans-thomas 1ec3ec2
Merge branch '4.1' into update-structure
hans-thomas 038df43
Update copying php.ini file;
hans-thomas 574deb0
test:group script removed;
hans-thomas 68d79e4
Merge creating php.ini and enabling coverage mode;
hans-thomas 2b4a0cb
Revert composer installation command;
hans-thomas 4881f6b
WIP
hans-thomas 8a36ebc
debug steps updated;
hans-thomas 81e0d24
Set xdebug.mode in phpunit config, default container command to insta…
GromNaN 45f8069
Merge branch '4.1' into update-structure
GromNaN b3c78f2
Update doc
GromNaN File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
interval: weekly |
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -16,16 +16,16 @@ jobs: | |
runs-on: "ubuntu-22.04" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v4" | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup cache environment | ||
id: extcache | ||
uses: shivammathur/cache-extensions@v1 | ||
with: | ||
php-version: ${{ env.PHP_VERSION }} | ||
extensions: "mongodb-${{ env.DRIVER_VERSION }}" | ||
key: "extcache-v1" | ||
extensions: mongodb-${{ env.DRIVER_VERSION }} | ||
key: extcache-v1 | ||
|
||
- name: Cache extensions | ||
uses: actions/cache@v3 | ||
|
@@ -34,22 +34,22 @@ jobs: | |
key: ${{ steps.extcache.outputs.key }} | ||
restore-keys: ${{ steps.extcache.outputs.key }} | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: "none" | ||
extensions: "mongodb-${{ env.DRIVER_VERSION }}" | ||
php-version: "${{ env.PHP_VERSION }}" | ||
tools: "cs2pr" | ||
coverage: none | ||
extensions: mongodb-${{ env.DRIVER_VERSION }} | ||
php-version: ${{ env.PHP_VERSION }} | ||
tools: cs2pr | ||
|
||
- name: "Show driver information" | ||
run: "php --ri mongodb" | ||
- name: Show driver information | ||
run: php --ri mongodb | ||
|
||
- name: "Install dependencies with Composer" | ||
uses: "ramsey/[email protected]" | ||
- name: Install dependencies with Composer | ||
uses: ramsey/[email protected] | ||
with: | ||
composer-options: "--no-suggest" | ||
composer-options: --no-suggest | ||
|
||
# The -q option is required until phpcs v4 is released | ||
- name: "Run PHP_CodeSniffer" | ||
run: "vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr" | ||
- name: Run PHP_CodeSniffer | ||
run: vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr |
This file contains hidden or 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 |
---|---|---|
@@ -1,19 +1,11 @@ | ||
ARG PHP_VERSION=8.1 | ||
|
||
FROM php:${PHP_VERSION}-cli | ||
FROM php:8.1-cli | ||
hans-thomas marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# Install extensions | ||
RUN apt-get update && \ | ||
apt-get install -y autoconf pkg-config libssl-dev git unzip libzip-dev zlib1g-dev && \ | ||
pecl install mongodb && docker-php-ext-enable mongodb && \ | ||
pecl install xdebug && docker-php-ext-enable xdebug && \ | ||
docker-php-ext-install -j$(nproc) zip | ||
|
||
COPY --from=composer:2.6.2 /usr/bin/composer /usr/local/bin/composer | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
|
||
WORKDIR /code | ||
|
||
COPY ./ ./ | ||
|
||
CMD ["bash", "-c", "composer install && ./vendor/bin/phpunit --testdox"] | ||
hans-thomas marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Install Composer | ||
RUN curl https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
hans-thomas marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.