Skip to content
Open
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
8 changes: 4 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.laminas-ci.json export-ignore
/.psr-container.php.stub export-ignore
/mkdocs.yml export-ignore
/phpcs.xml export-ignore
/phpunit.xml.dist export-ignore
/psalm-baseline.xml export-ignore
/psalm.xml.dist export-ignore
/composer-require-checker.json export-ignore
/composer.lock export-ignore
/renovate.json export-ignore
/bin/ export-ignore
/tools/ export-ignore
/Makefile export-ignore

mago.toml export-ignore
baseline.lint.toml export-ignore
baseline.sa.toml export-ignore
45 changes: 45 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,48 @@ jobs:
- uses: ramsey/composer-install@4.0.0
- run: make install-tools
- run: make composer-require-checker

mago-lint:
name: "Mago Lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: ${{ env.default_php }}
extensions: ${{ env.php_extensions }}
ini-values: memory_limit=-1
- uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # 4.0.0
- run: vendor/bin/mago lint

mago-analyse:
name: "Mago Analyse"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: ${{ env.default_php }}
extensions: ${{ env.php_extensions }}
ini-values: memory_limit=-1
- uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # 4.0.0
- run: vendor/bin/mago analyse

mago-format:
name: "Mago Format"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: ${{ env.default_php }}
extensions: ${{ env.php_extensions }}
ini-values: memory_limit=-1
- uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # 4.0.0
- run: vendor/bin/mago format --dry-run
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/.phpcs-cache
/.phpunit.cache
/clover.xml
/docs/html/
/laminas-mkdoc-theme.tgz
/laminas-mkdoc-theme/
Expand Down
23 changes: 0 additions & 23 deletions .psr-container.php.stub

This file was deleted.

29 changes: 24 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,37 @@ clean: ## Clear out caches and documentation assets
docker image rm laminas/mkdocs
rm -rf .phpunit.cache
rm -f .phpcs-cache
vendor/bin/psalm --clear-cache

static-analysis: ## Run static analysis checks
vendor/bin/psalm --no-cache
vendor/bin/mago analyse
.PHONY: static-analysis

update-sa-baseline: ## Refresh the Mago SA baseline
vendor/bin/mago analyse --remove-outdated-baseline-entries
.PHONY: update-sa-baseline

set-sa-baseline: ## Add violations to the Mago SA Baseline
vendor/bin/mago analyse --generate-baseline
.PHONY: set-sa-baseline

lint: ## Run mago lint
vendor/bin/mago lint
.PHONY: lint

update-lint-baseline: ## Refresh the Mago lint baseline
vendor/bin/mago lint --remove-outdated-baseline-entries
.PHONY: update-sa-baseline

set-lint-baseline: ## Add violations to the Mago lint Baseline
vendor/bin/mago lint --generate-baseline
.PHONY: set-sa-baseline

coding-standards: ## Run coding standards checks
vendor/bin/phpcs
vendor/bin/mago format --dry-run
.PHONY: coding-standards

coding-standards-fix: ## Fix coding standard violations
vendor/bin/phpcbf
vendor/bin/mago format
.PHONY: coding-standards-fix

test: ## Run unit tests
Expand All @@ -89,5 +108,5 @@ check-links: ## Check documentation links
@docker run -it -w /app -v ${PWD}:/app --rm ${LINK_CHECKER_IMAGE} -t 5 -qq -f raw "docs/**/*.md" README.md
.PHONY: check-links

qa: coding-standards static-analysis test composer-require-checker docs-lint check-links ## Run all QA Checks
qa: coding-standards static-analysis lint test composer-require-checker docs-lint check-links ## Run all QA Checks
.PHONY: qa
Loading