Skip to content

Commit 444adf9

Browse files
committed
fix on readme and quality workflow
1 parent f784a4d commit 444adf9

File tree

7 files changed

+125
-111
lines changed

7 files changed

+125
-111
lines changed

.github/workflows/phpunit.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: PHPUnit
2+
on: push
3+
jobs:
4+
phpunit:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- uses: shivammathur/setup-php@v2
9+
with:
10+
php-version: '8.2'
11+
tools: composer:v2
12+
coverage: pcov
13+
- uses: actions/cache@v3
14+
with:
15+
path: '**/vendor'
16+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
17+
restore-keys: |
18+
${{ runner.os }}-composer-
19+
- uses: php-actions/composer@v6
20+
with:
21+
args: --prefer-dist
22+
php_version: '8.2'
23+
24+
- name: Run tests & generate Coverage
25+
run: bin/phpunit functional --coverage-html var/coverage
26+
27+
- name: Store coverage files
28+
uses: actions/upload-artifact@v3
29+
with:
30+
path: var/coverage

.github/workflows/quality.yaml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,6 @@ jobs:
1414
chmod a+x php-cs-fixer
1515
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix --dry-run --config=.php-cs-fixer.dist.php
1616
17-
phpunit:
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v3
21-
- uses: shivammathur/setup-php@v2
22-
with:
23-
php-version: '8.2'
24-
tools: composer:v2
25-
coverage: pcov
26-
- uses: actions/cache@v3
27-
with:
28-
path: '**/vendor'
29-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
30-
restore-keys: |
31-
${{ runner.os }}-composer-
32-
- uses: php-actions/composer@v6
33-
with:
34-
args: --prefer-dist
35-
php_version: '8.2'
36-
37-
- name: Run tests & generate Coverage
38-
run: bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage --whitelist=src
39-
40-
- name: Store coverage files
41-
uses: actions/upload-artifact@v3
42-
with:
43-
path: var/coverage
44-
4517
phpstan:
4618
runs-on: ubuntu-latest
4719
steps:

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
# SQL Plugin
1+
SQL Plugin
2+
===
3+
4+
[![Mutations](https://github.com/php-etl/sql-plugin/actions/workflows/infection.yaml/badge.svg)](https://github.com/php-etl/sql-plugin/actions/workflows/infection.yaml)
5+
[![PHPUnit](https://github.com/php-etl/sql-plugin/actions/workflows/phpunit.yaml/badge.svg)](https://github.com/php-etl/sql-plugin/actions/workflows/phpunit.yaml)
6+
[![Quality](https://github.com/php-etl/sql-plugin/actions/workflows/quality.yaml/badge.svg)](https://github.com/php-etl/sql-plugin/actions/workflows/quality.yaml)
7+
[![PHPStan level 5](https://github.com/php-etl/sql-plugin/actions/workflows/phpstan-5.yaml/badge.svg)](https://github.com/php-etl/sql-plugin/actions/workflows/phpstan-5.yaml)
8+
[![PHPStan level 6](https://github.com/php-etl/sql-plugin/actions/workflows/phpstan-6.yaml/badge.svg)](https://github.com/php-etl/sql-plugin/actions/workflows/phpstan-6.yaml)
9+
[![PHPStan level 7](https://github.com/php-etl/sql-plugin/actions/workflows/phpstan-7.yaml/badge.svg)](https://github.com/php-etl/sql-plugin/actions/workflows/phpstan-7.yaml)
10+
[![PHPStan level 8](https://github.com/php-etl/sql-plugin/actions/workflows/phpstan-8.yaml/badge.svg)](https://github.com/php-etl/sql-plugin/actions/workflows/phpstan-8.yaml)
11+
![PHP](https://img.shields.io/packagist/php-v/php-etl/sql-plugin)
212

313
## What is it ?
414

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"require": {
1515
"php": "^8.2",
1616
"nikic/php-parser": "^4.10",
17-
"symfony/config": "^5.2",
18-
"symfony/expression-language": "^5.2",
17+
"symfony/config": "^5.2 || ^6.0",
18+
"symfony/expression-language": "^5.2 || ^6.0",
1919
"php-etl/configurator-contracts": "^0.6@dev",
2020
"php-etl/satellite-toolbox": "^0.4@dev",
2121
"php-etl/fast-map-plugin": "^0.8@dev",

0 commit comments

Comments
 (0)