Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
integration_test:
strategy:
matrix:
php_version: [8.2, 8.3, 8.4]
php_version: [8.0, 8.1, 8.2, 8.3, 8.4]
testsuite: [general, brancher]
runs-on: ubuntu-latest
steps:
Expand Down
10 changes: 8 additions & 2 deletions ci/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,14 @@ COPY ./ci/build/files /

RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer \
&& chmod +x /usr/local/bin/composer \
&& composer install --no-dev --optimize-autoloader --working-dir=/hypernode
&& chmod +x /usr/local/bin/composer

# Remove dev dependencies from composer.json
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have the wierd case that only our dev dependencies (psalm) have the hard limit for PHP 8.1. There's no way to remove this check except entirely disabling the platform requirements. That's why we remove dev-require in the production docker build

RUN cd /hypernode && \
jq 'del(.["require-dev"])' composer.json > composer.tmp.json && \
cp composer.tmp.json composer.json

RUN composer install --no-dev --optimize-autoloader --working-dir=/hypernode --no-scripts --no-progress --no-interaction

RUN bash /hypernode/ci/compile.sh

Expand Down
Loading