Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Continuous Integration"

on:
pull_request:
push:
branches:
- 'refs/pull/*'
- main

jobs:
matrix:
name: Generate job matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- name: Gather CI configuration
id: matrix
uses: laminas/laminas-ci-matrix-action@v1

qa:
name: QA Checks
needs: [matrix]
runs-on: ${{ matrix.operatingSystem }}
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
steps:
- name: ${{ matrix.name }}
uses: laminas/laminas-continuous-integration-action@v1
with:
job: ${{ matrix.job }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ phpstan.neon
###> vincentlanglet/twig-cs-fixer ###
/.twig-cs-fixer.cache
###< vincentlanglet/twig-cs-fixer ###

###> friendsofphp/php-cs-fixer ###
/.php-cs-fixer.php
/.php-cs-fixer.cache
###< friendsofphp/php-cs-fixer ###
11 changes: 11 additions & 0 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"additional_checks": [
{
"name": "Lint",
"job": {
"command": "export APP_ENV=prod; bin/console lint:container; bin/console lint:yaml config --parse-tags; bin/console lint:twig templates",
"php": "@lowest"
}
}
]
}
19 changes: 19 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"twig/twig": "^3.22"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.89.1",
"phpstan/extension-installer": "^1.4.3",
"phpstan/phpstan": "^2.1.31",
"phpstan/phpstan-symfony": "^2.0.8",
Expand Down Expand Up @@ -78,6 +79,24 @@
],
"post-update-cmd": [
"@auto-scripts"
],
"lint:php-cs": "php-cs-fixer fix --dry-run --diff --verbose",
"lint:phpstan": "phpstan analyse",
"lint:twig": "twig-cs-fixer lint",
"lint:rector": "rector process --dry-run",
"lint": [
"@lint:php-cs",
"@lint:phpstan",
"@lint:twig",
"@lint:rector"
],
"fix:php-cs": "php-cs-fixer fix",
"fix:twig": "twig-cs-fixer lint --fix",
"fix:rector": "rector process",
"fix": [
"@fix:php-cs",
"@fix:twig",
"@fix:rector"
]
},
"conflict": {
Expand Down
Loading