new appraoch
This commit is contained in:
36
pancake/system/vendor/masterminds/html5/.github/workflows/benchmark.yaml
vendored
Executable file
36
pancake/system/vendor/masterminds/html5/.github/workflows/benchmark.yaml
vendored
Executable file
@@ -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@v3
|
||||
|
||||
- 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
pancake/system/vendor/masterminds/html5/.github/workflows/ci.yaml
vendored
Executable file
38
pancake/system/vendor/masterminds/html5/.github/workflows/ci.yaml
vendored
Executable file
@@ -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@v3
|
||||
|
||||
- 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
pancake/system/vendor/masterminds/html5/.github/workflows/cs.yaml
vendored
Executable file
32
pancake/system/vendor/masterminds/html5/.github/workflows/cs.yaml
vendored
Executable file
@@ -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@v3
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-version }}
|
||||
|
||||
- name: cs fix
|
||||
run: |
|
||||
wget -q 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
|
||||
Reference in New Issue
Block a user