Lint Twig Templates with djLint in GitHub Actions
Detect malformed Twig templates in custom Drupal modules and themes using djLint in a fast GitHub Actions job.
Detect malformed Twig templates in custom Drupal modules and themes using djLint in a fast GitHub Actions job.
Run PHPStan against custom Drupal code in GitHub Actions to find type errors and unsafe code paths.
Apply PHPCS security rules to custom Drupal modules and themes while excluding third-party code.
Use npm audit in GitHub Actions to detect high-severity vulnerabilities in frontend packages shipped to production.
Test common pages across environments and publish Lighthouse performance, accessibility, best-practices, and SEO scores.
Use Gitleaks in GitHub Actions to detect credentials and tokens in the current checkout without exposing findings.
Run ESLint and Stylelint against a custom Drupal theme to catch frontend defects and inconsistent code before release.
Audit locked PHP dependencies for known vulnerabilities and abandoned packages with Composer and GitHub Actions.
A practical guide to common GitHub Actions workflows: PHPCS, PHPStan, CodeQL, dependency review, Docker image builds, container scans, Lighthouse tests, smoke tests, and deployment gates.