Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
with:
coverage: "none"
php-version: "7.4"
tools: cs2pr, pecl, composer:v1
tools: cs2pr, pecl, composer:v2
extensions: tidy
ini-values: "date.timezone=Europe/Paris"
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
uses: "ramsey/composer-install@v2"
with:
composer-options: "--optimize-autoloader --prefer-dist"

Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "CI"

on:
pull_request:
push:
branches:
- master

jobs:
phpunit:
name: "PHP ${{ matrix.php }}"
runs-on: "ubuntu-20.04"

strategy:
fail-fast: false
matrix:
php:
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
coverage: none
tools: pecl, composer:v2
extensions: tidy
ini-values: "date.timezone=Europe/Paris"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
with:
composer-options: "--optimize-autoloader --prefer-dist"

- name: "Run PHPUnit"
run: "php vendor/bin/phpunit --color tests"
10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,21 @@
}
],
"require":{
"php":">4.4.0"
"php":">=7.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0"
"friendsofphp/php-cs-fixer": "~3.4.0",
"phpunit/phpunit": "^8.5"
},
"replace":{
"htmlawed/htmlawed": "*"
},
"autoload": {
"files": ["htmLawed.php"]
},
"config":{
"platform": {
"php": "7.2.34"
}
}
}
Loading