Skip to content

Commit c8550ee

Browse files
committed
fix on readme and quality workflow
1 parent 67cccd0 commit c8550ee

File tree

7 files changed

+88
-75
lines changed

7 files changed

+88
-75
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
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,6 +1,16 @@
1-
# String Expression Language
1+
String Expression Language
2+
===
23
This package extends the [ExpressionLanguage](https://symfony.com/doc/current/components/expression_language.html) component of Symfony to compile and evaluate arrays with custom functions.
34

5+
[![Mutations](https://github.com/php-etl/string-expression-language/actions/workflows/infection.yaml/badge.svg)](https://github.com/php-etl/string-expression-language/actions/workflows/infection.yaml)
6+
[![PHPUnit](https://github.com/php-etl/string-expression-language/actions/workflows/phpunit.yaml/badge.svg)](https://github.com/php-etl/string-expression-language/actions/workflows/phpunit.yaml)
7+
[![Quality](https://github.com/php-etl/string-expression-language/actions/workflows/quality.yaml/badge.svg)](https://github.com/php-etl/string-expression-language/actions/workflows/quality.yaml)
8+
[![PHPStan level 5](https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-5.yaml/badge.svg)](https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-5.yaml)
9+
[![PHPStan level 6](https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-6.yaml/badge.svg)](https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-6.yaml)
10+
[![PHPStan level 7](https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-7.yaml/badge.svg)](https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-7.yaml)
11+
[![PHPStan level 8](https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-8.yaml/badge.svg)](https://github.com/php-etl/string-expression-language/actions/workflows/phpstan-8.yaml)
12+
![PHP](https://img.shields.io/packagist/php-v/php-etl/string-expression-language)
13+
414
# Installation
515
```
616
composer require php-etl/string-expression-language

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"prefer-stable": true,
1414
"require": {
1515
"php": "^8.2",
16-
"symfony/expression-language": "^5.2"
16+
"symfony/expression-language": "^5.2 || ^6.0"
1717
},
1818
"require-dev": {
1919
"phpunit/phpunit": "^9.5 || ^10.0",

composer.lock

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

infection.json.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"$schema": "https://raw.githubusercontent.com/infection/infection/0.26.18/resources/schema.json",
32
"source": {
43
"directories": [
54
"src"
@@ -10,8 +9,7 @@
109
"text": "infection.log",
1110
"summary": "summary.log",
1211
"json": "infection-log.json",
13-
"perMutator": "per-mutator.md",
14-
"github": true,
12+
"perMutator": "per-mutator.md"
1513
},
1614
"phpUnit": {
1715
"configDir": "."
@@ -20,4 +18,6 @@
2018
"@default": true
2119
},
2220
"testFramework":"phpunit",
21+
"minMsi": 60,
22+
"minCoveredMsi": 70
2323
}

phpunit.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
5-
backupGlobals="true"
6-
colors="false"
7-
processIsolation="false"
8-
stopOnError="false"
9-
stopOnFailure="false"
10-
stopOnIncomplete="false"
11-
stopOnSkipped="false"
12-
stopOnRisky="false"
13-
timeoutForSmallTests="1"
14-
timeoutForMediumTests="10"
15-
timeoutForLargeTests="60"
16-
cacheDirectory=".phpunit.cache"
17-
backupStaticProperties="false"
18-
requireCoverageMetadata="false">
5+
backupGlobals="true"
6+
colors="false"
7+
processIsolation="false"
8+
stopOnError="false"
9+
stopOnFailure="false"
10+
stopOnIncomplete="false"
11+
stopOnSkipped="false"
12+
stopOnRisky="false"
13+
timeoutForSmallTests="1"
14+
timeoutForMediumTests="10"
15+
timeoutForLargeTests="60"
16+
cacheDirectory=".phpunit.cache"
17+
backupStaticProperties="false"
18+
requireCoverageMetadata="false">
1919
<testsuites>
2020
<testsuite name="Functional tests">
2121
<directory>tests/functional/</directory>
@@ -27,6 +27,6 @@
2727
</include>
2828
</coverage>
2929
<php>
30-
<ini name="allow_url_include" value="1"/>
30+
<ini name="allow_url_include" value="1" />
3131
</php>
3232
</phpunit>

0 commit comments

Comments
 (0)