Skip to content

Commit 7384e0e

Browse files
authored
Merge pull request #6 from tyrsson/x.x.1-patch
Continues code alignment with PhpDb 0.0.1.
2 parents c389215 + 0d2c1c8 commit 7384e0e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1855
-468
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Continuous Integration"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
tags:
8+
9+
jobs:
10+
matrix:
11+
name: Generate job matrix
12+
runs-on: ubuntu-latest
13+
outputs:
14+
matrix: ${{ steps.matrix.outputs.matrix }}
15+
steps:
16+
- name: Gather CI configuration
17+
id: matrix
18+
uses: laminas/laminas-ci-matrix-action@v1
19+
20+
qa:
21+
name: QA Checks
22+
needs: [matrix]
23+
runs-on: ${{ matrix.operatingSystem }}
24+
strategy:
25+
fail-fast: false
26+
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
27+
steps:
28+
- name: ${{ matrix.name }}
29+
uses: laminas/laminas-continuous-integration-action@v1
30+
with:
31+
job: ${{ matrix.job }}

.laminas-ci.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"ignore_php_platform_requirements": {
3+
"8.4": true
4+
},
5+
"exclude": [
6+
{
7+
"name": "PHPUnit",
8+
"php": "8.1"
9+
},
10+
{
11+
"name": "PHPUnit",
12+
"php": "8.4",
13+
"dependencies": "lowest"
14+
}
15+
]
16+
}

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@
2525
}
2626
},
2727
"extra": {
28-
"php-db": {
28+
"laminas": {
2929
"config-provider": "PhpDb\\Adapter\\Sqlite\\ConfigProvider"
3030
}
3131
},
3232
"require": {
3333
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
34-
"php-db/phpdb": "0.0.x-dev"
34+
"php-db/phpdb": "dev-x.x.2",
35+
"webmozart/assert": "^1.11"
3536
},
3637
"require-dev": {
3738
"ext-pdo": "*",
@@ -67,6 +68,8 @@
6768
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
6869
"test-integration": "phpunit --colors=always --testsuite \"integration test\"",
6970
"static-analysis": "psalm --shepherd --stats",
71+
"sa-update-baseline": "psalm --update-baseline",
72+
"sa-no-baseline": "psalm --shepherd --stats --ignore-baseline",
7073
"upload-coverage": "coveralls -v"
7174
}
7275
}

composer.lock

Lines changed: 82 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpunit.xml.dist

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,16 @@
1414
failOnDeprecation="true"
1515
failOnWarning="true">
1616
<testsuites>
17-
<testsuite name="unit">
18-
<directory>test/unit</directory>
17+
<testsuite name="unit test">
18+
<directory>./test/unit</directory>
1919
</testsuite>
20-
<testsuite name="integration">
21-
<directory>test/integration</directory>
20+
<testsuite name="integration test">
21+
<directory>./test/integration</directory>
2222
</testsuite>
2323
</testsuites>
24-
<coverage pathCoverage="false" disableCodeCoverageIgnore="true">
25-
</coverage>
26-
<source>
24+
<source restrictNotices="true">
2725
<include>
28-
<directory suffix=".php">src</directory>
26+
<directory>./src</directory>
2927
</include>
3028
</source>
3129
</phpunit>

0 commit comments

Comments
 (0)