Skip to content
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

[10.x] Re-formatted CI and added more PHP versions to the test matrix. #654

Merged
merged 1 commit into from
May 14, 2024

Conversation

AlexSkrypnyk
Copy link
Collaborator

@AlexSkrypnyk AlexSkrypnyk commented May 14, 2024

I've updated the CI config to have names for each job for consistency.

I've also added additional PHP versions to test:

PHP Versions Drupal Release Composer Channel
8.1 stable stable
8.1 stable snapshot
8.1 dev stable
8.1 dev snapshot
8.2 stable stable
8.2 stable snapshot
8.2 dev stable
8.2 dev snapshot
8.3 stable stable
8.3 stable snapshot

Note that Drupal 10.x-dev tests fail on PHP 8.3. https://www.drupal.org/project/drupal/issues/3375693

@AlexSkrypnyk AlexSkrypnyk added the PR: Do not review Do not review this pull request label May 14, 2024
@AlexSkrypnyk AlexSkrypnyk force-pushed the feature/10x-cleanup-gha branch from 49fb57c to db4ee50 Compare May 14, 2024 09:26
@AlexSkrypnyk AlexSkrypnyk requested a review from normanlolx May 14, 2024 09:27
@AlexSkrypnyk AlexSkrypnyk changed the title Re-formatted CI and added more PHP versions to the test matrix. [10.x] Re-formatted CI and added more PHP versions to the test matrix. May 14, 2024
run: ./vendor/bin/phpunit -c ./web/core ./web/core/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php

- run: ./vendor/bin/drush
Copy link
Collaborator Author

@AlexSkrypnyk AlexSkrypnyk May 14, 2024

Choose a reason for hiding this comment

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

this is not needed - Drush was used above to install the site and run the server


# https://www.drupal.org/project/drupal/issues/3182653
# https://www.drupal.org/node/3176567
- if: ${{ matrix.php-versions == '8.1' }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

moved above to the part where all of the code base is prepared


- run: ./vendor/bin/drush site-install --verbose --yes --db-url=sqlite://tmp/site.sqlite
- name: Override Drupal version to dev for testing dev releases
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is a single operation, so combined multiple steps

php-versions: ['8.1']
drupal-release: ['stable']
composer-channel: ['stable']
php-versions: ['8.1', '8.2']
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

PHP Versions Drupal Release Composer Channel
8.1 stable stable
8.1 stable snapshot
8.1 dev stable
8.1 dev snapshot
8.2 stable stable
8.2 stable snapshot
8.2 dev stable
8.2 dev snapshot
8.3 stable stable
8.3 stable snapshot

@AlexSkrypnyk
Copy link
Collaborator Author

@leymannx
I will create similar D11 PR once I get a review/feedback on this one

Copy link
Collaborator

@normanlolx normanlolx left a comment

Choose a reason for hiding this comment

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

This looks very good to me 👌🏻

@AlexSkrypnyk AlexSkrypnyk merged commit c3397b9 into 10.x May 14, 2024
20 checks passed
@AlexSkrypnyk AlexSkrypnyk deleted the feature/10x-cleanup-gha branch May 14, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D10 PR: Do not review Do not review this pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants