Setting Up Laravel Unit and Security Tests
Too Long; Didn't ReadLaravel Unit and Security Tests are a set of automated tests performed on a Laravel application to ensure its functionality and security. The tests are performed using PHPUnit and PHPCS and are executed on a Git Actions workflow. The following are the steps involved in performing Laravel Unit and Security Tests:
Checkout the code from the repository.
Set up PHP 8.1 as the PHP version to use.
Restore the composer cache if available.
Install the dependencies required for the application.
Set up the Laravel application.
Save the composer cache for future use.
Set permissions for the storage and bootstrap/cache directories.
Execute the unit and feature tests using PHPUnit.
Check the code for any coding standards violations using PHPCS.
Install a security checker package and run a security check on the application.