Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci improvements #66

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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
35 changes: 35 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Continuous Integration"

on:
pull_request:
branches:
- "refs/pull/*"
- "master"
push:
branches:
- "refs/pull/*"
- "master"

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 }}
36 changes: 0 additions & 36 deletions .github/workflows/cs.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/phpstan.yaml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/tests.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ vendor
.phpunit.result.cache
.php-cs-fixer.cache
.vscode
composer.phar
composer.phar
/composer.lock
16 changes: 16 additions & 0 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"additional_checks": [
{
"name": "PHPStan",
"job": {
"command": "./vendor/bin/phpstan analyse",
"php": "@lowest"
}
}
],
"exclude": [
{
"name": "README Linting [8.1, latest]"
}
]
}
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
],
"require": {
"php": "^8.1",
"jms/serializer": "^3.16",
"jms/serializer": "^3.18",
"ext-dom": "*"
},
"suggest": {
"ext-libxml": "Needed for XSD validation"
},
"require-dev": {
"phpunit/phpunit": "^9.3",
"phpunit/phpunit": "^9.6",
"ext-libxml": "*",
"friendsofphp/php-cs-fixer": "^3.16",
"friendsofphp/php-cs-fixer": "3.16.*",
"phpstan/phpstan": "^1.10",
"rector/rector": "^1.0",
"symfony/finder": "^5.4",
Expand Down
Loading