Skip to content

Commit cc42f21

Browse files
authored
Merge pull request #9 from Kdecherf/fix/img
img: fix srcset pattern and src default value
2 parents ed284a2 + 355a00b commit cc42f21

File tree

6 files changed

+2137
-353
lines changed

6 files changed

+2137
-353
lines changed

.github/workflows/coding-standards.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
with:
2121
coverage: "none"
2222
php-version: "7.4"
23-
tools: cs2pr, pecl, composer:v1
23+
tools: cs2pr, pecl, composer:v2
2424
extensions: tidy
2525
ini-values: "date.timezone=Europe/Paris"
2626
env:
2727
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828

2929
- name: "Install dependencies with Composer"
30-
uses: "ramsey/composer-install@v1"
30+
uses: "ramsey/composer-install@v2"
3131
with:
3232
composer-options: "--optimize-autoloader --prefer-dist"
3333

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "CI"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
phpunit:
11+
name: "PHP ${{ matrix.php }}"
12+
runs-on: "ubuntu-20.04"
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
php:
18+
- "7.2"
19+
- "7.3"
20+
- "7.4"
21+
- "8.0"
22+
- "8.1"
23+
24+
steps:
25+
- name: "Checkout"
26+
uses: "actions/checkout@v2"
27+
28+
- name: "Install PHP"
29+
uses: "shivammathur/setup-php@v2"
30+
with:
31+
php-version: "${{ matrix.php }}"
32+
coverage: none
33+
tools: pecl, composer:v2
34+
extensions: tidy
35+
ini-values: "date.timezone=Europe/Paris"
36+
37+
- name: "Install dependencies with Composer"
38+
uses: "ramsey/composer-install@v2"
39+
with:
40+
composer-options: "--optimize-autoloader --prefer-dist"
41+
42+
- name: "Run PHPUnit"
43+
run: "php vendor/bin/phpunit --color tests"

composer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,21 @@
1515
}
1616
],
1717
"require":{
18-
"php":">4.4.0"
18+
"php":">=7.2"
1919
},
2020
"require-dev": {
21-
"friendsofphp/php-cs-fixer": "^3.0"
21+
"friendsofphp/php-cs-fixer": "~3.4.0",
22+
"phpunit/phpunit": "^8.5"
2223
},
2324
"replace":{
2425
"htmlawed/htmlawed": "*"
2526
},
2627
"autoload": {
2728
"files": ["htmLawed.php"]
29+
},
30+
"config":{
31+
"platform": {
32+
"php": "7.2.34"
33+
}
2834
}
2935
}

0 commit comments

Comments
 (0)