Setup GitHub actions for PHP to run phpcs and phplint

Published: 30 June 2020
on channel: hussainweb
3,858
87

Linting and style checks are quick wins and you should not think too much about them. Just set it up and let it do its thing. I know everyone prefers a different coding style, but whatever style you use, style checks make it consistent for you and your team. So, just pick something and use it consistently.

This video walks you through setting up phpcs and phplint on your PHP project as a composer script. It then also covers adding those as GitHub actions so that you have style checks and linting with every commit.

Contents

00:00 Start
00:17 Introduction to linting and style checks
00:53 Looking at the project
01:40 Adding the tools
02:07 Verifying phpcs
02:26 Add phplint
04:33 Adding GitHub workflow
05:53 Add actions to the workflow
06:47 See it in action
07:37 Merge PR and closing


On this page of the site you can watch the video online Setup GitHub actions for PHP to run phpcs and phplint with a duration of hours minute second in good quality, which was uploaded by the user hussainweb 30 June 2020, share the link with friends and acquaintances, this video has already been watched 3,858 times on youtube and it was liked by 87 viewers. Enjoy your viewing!