Skip to content

Add "Composer Lint" job to CI pipeline#31

Merged
greg0ire merged 1 commit into
doctrine:mainfrom
phansys:composer_lint
Jun 22, 2022
Merged

Add "Composer Lint" job to CI pipeline#31
greg0ire merged 1 commit into
doctrine:mainfrom
phansys:composer_lint

Conversation

@phansys

@phansys phansys commented Jun 21, 2022

Copy link
Copy Markdown
Contributor

@phansys phansys marked this pull request as ready for review June 21, 2022 21:21
@phansys phansys force-pushed the composer_lint branch 4 times, most recently from 9bf3e50 to a595a81 Compare June 21, 2022 22:33
Comment thread .github/workflows/composer-lint.yml Outdated
Comment on lines +41 to +42
- name: "Composer validate"
run: "composer validate"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Doesn't composer-normalize already run this validation step?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Even if that is not explicitly stated in the docs, I guess the validation is already covered (ergebnis/composer-normalize#297, ergebnis/composer-normalize#406).

Comment thread .github/workflows/composer-lint.yml Outdated
inputs:
php-version:
description: "The PHP version to use when running the job"
default: "8.0"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not 8.1?

Suggested change
default: "8.0"
default: "8.1"

@phansys phansys requested a review from derrabus June 21, 2022 23:58
@greg0ire

Copy link
Copy Markdown
Member

Can you please test this before we merge it? Here is how you can do so: doctrine/DoctrineMigrationsBundle@9321c8c

@phansys

phansys commented Jun 22, 2022

Copy link
Copy Markdown
Contributor Author

Can you please test this before we merge it? Here is how you can do so: doctrine/DoctrineMigrationsBundle@9321c8c

Thank you @greg0ire!
Testing the build I figured out that the paths option is only available for these events: push, pull_request, pull_request_target.
What do you suggest?

@greg0ire

greg0ire commented Jun 22, 2022

Copy link
Copy Markdown
Member

Well I'm confused, since this is a pull request, isn't it?

2022-06-22_12-16

EDIT: ah maybe you can use it in the caller side rather than on the callee side?

@greg0ire greg0ire left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please add a workflow template and a properties file in the workflow-templates directory

@phansys phansys requested a review from greg0ire June 22, 2022 12:21
@greg0ire greg0ire added the enhancement New feature or request label Jun 22, 2022
@greg0ire greg0ire merged commit 87f8373 into doctrine:main Jun 22, 2022
@greg0ire

Copy link
Copy Markdown
Member

Thanks @phansys ! I'm going to tag a new version with this!

@phansys phansys deleted the composer_lint branch June 22, 2022 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants