A ready-to-use CI/CD Pipeline for Symfony projects.
Run the following command in your project:
dagger run fluentci symfony_pipeline
Or, if you want to use it as a template:
fluentci init -t symfony
This will create a .fluentci
folder in your project.
Now you can run the pipeline with:
fluentci run .
Use as a Dagger module:
dagger install github.com/fluent-ci-templates/symfony-pipeline@main
Call a function from the module:
dagger call phpstan --src . dagger call phpcs --src .
Job | Description |
---|---|
phpstan | Run PHPStan |
phpcs | Run PHPCS |
twigLint | Lint Twig templates |
xliffLint | Lint XLIFF translations |
yamlLint | Lint YAML files |
doctrineLint | Lint Doctrine entities |
containerLint | Lint Parameters and Services |
phpUnit | Run PHPUnit |
containerLint(src: Directory | string = "."): Promise<string> doctrineLint(src: Directory | string = "."): Promise<string> phpUnit(src: Directory | string = "."): Promise<string> phpcs(src: Directory | string = "."): Promise<string> phpstan(src: Directory | string = "."): Promise<string> twigLint(src: Directory | string = "."): Promise<string> xliffLint(src: Directory | string = "."): Promise<string> yamlLint(src: Directory | string = "."): Promise<string>
You can also use this pipeline programmatically:
import { phpcs, phpstan, twigLint, xliffLint, yamlLint, doctrineLint, containerLint, phpUnit, } from "jsr:@fluentci/symfony"; await phpcs(); await phpstan(); await twigLint(); await xliffLint(); await yamlLint(); await doctrineLint(); await containerLint(); await phpUnit();
Add Package
deno add jsr:@fluentci/symfony
Import symbol
import * as symfony from "@fluentci/symfony";
---- OR ----
Import directly with a jsr specifier
import * as symfony from "jsr:@fluentci/symfony";
Add Package
npx jsr add @fluentci/symfony
Import symbol
import * as symfony from "@fluentci/symfony";
Add Package
yarn dlx jsr add @fluentci/symfony
Import symbol
import * as symfony from "@fluentci/symfony";
Add Package
pnpm dlx jsr add @fluentci/symfony
Import symbol
import * as symfony from "@fluentci/symfony";
Add Package
bunx jsr add @fluentci/symfony
Import symbol
import * as symfony from "@fluentci/symfony";