Skip to content

Commit

Permalink
actions
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Jan 11, 2023
2 parents 840783a + 5a1aa1c commit 0d7a60b
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 42 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Benchmarks

on:
pull_request:
push:
branches:
- master

jobs:
phpbench:
name: "PHPBench"
runs-on: "ubuntu-20.04"

strategy:
fail-fast: false
matrix:
php-version:
- "5.4"
- "7.4"
- "8.2"

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"

- name: Run performance tests
run: |
php test/benchmark/run.php 10
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
pull_request:
push:
branches:
- master

jobs:
phpunit:
name: "PHPUnit"
runs-on: "ubuntu-20.04"

strategy:
fail-fast: false
matrix:
php-version:
- "5.3"
- "5.4"
- "7.4"
- "8.0"
- "8.1"
- "8.2"

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"

- name: Run tests
run: vendor/bin/phpunit
32 changes: 32 additions & 0 deletions .github/workflows/cs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CS

on:
pull_request:
push:
branches:
- master

jobs:
php-cs-fixer:
name: "php-cs-fixer"
runs-on: "ubuntu-20.04"

strategy:
fail-fast: false
matrix:
php-version:
- "7.1"

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: Run performance tests
run: |
wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.13.1/php-cs-fixer.phar
php php-cs-fixer.phar fix --dry-run --diff
41 changes: 0 additions & 41 deletions .scrutinizer.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ issues known issues that are not presently on the roadmap:
- Scripts: This parser does not contain a JavaScript or a CSS
interpreter. While one may be supplied, not all features will be
supported.
- Rentrance: The current parser is not re-entrant. (Thus you can't pause
- Reentrance: The current parser is not re-entrant. (Thus you can't pause
the parser to modify the HTML string mid-parse.)
- Validation: The current tree builder is **not** a validating parser.
While it will correct some HTML, it does not check that the HTML
Expand Down

0 comments on commit 0d7a60b

Please sign in to comment.