-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Github workflow for checking PHP quality #2
Conversation
c309e1d
to
a326065
Compare
.github/workflows/quality-js.yml
Outdated
checks: | ||
name: Lint JS | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'BeAPI/multisite-shared-blocks' || github.event_name == 'pull_request' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pourquoi tester le nom du repo ? ou l'event name ?
La condition au dessus devrait suffire
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est repris de ce que fait WordPress ou Yoast dans ses workflows. Je crois que c'est une sécurité en cas ou une personne fork un projet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, inutile à notre échelle je pense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pour référence : WordPress/gutenberg#32114
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est modifié.
.github/workflows/quality-php.yml
Outdated
checks: | ||
name: Codesniffer | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'BeAPI/multisite-shared-blocks' || github.event_name == 'pull_request' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pourquoi tester le nom du repo ? ou l'event name ?
La condition au dessus devrait suffire
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est modifié.
.github/workflows/unit-tests.yml
Outdated
unit-php: | ||
name: PHP | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'BeAPI/multisite-shared-blocks' || github.event_name == 'pull_request' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pourquoi tester le nom du repo ? ou l'event name ?
La condition au dessus devrait suffire
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est modifié.
.github/workflows/unit-tests.yml
Outdated
|
||
- name: Run unit tests | ||
run: npm run test:php | ||
if: ${{ success() || failure() }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pas compris l'intéret de la ligne, si la commande plante alors l'action sera considérée comme fausse et donc OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est repris de ce que fait Gutenberg dans son workflow. Je peux tester sans.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bah là ça dit que ça passe que se soit une erreur ou un succès, ça me parait chelou, laissons-le échouer si besoin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est modifié.
.github/workflows/quality-js.yml
Outdated
checks: | ||
name: Lint JS | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'BeAPI/multisite-shared-blocks' || github.event_name == 'pull_request' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, inutile à notre échelle je pense.
.github/workflows/unit-tests.yml
Outdated
|
||
- name: Run unit tests | ||
run: npm run test:php | ||
if: ${{ success() || failure() }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bah là ça dit que ça passe que se soit une erreur ou un succès, ça me parait chelou, laissons-le échouer si besoin
5552526
to
3cbbd56
Compare
No description provided.