Skip to content

Commit

Permalink
Merge pull request #140 from tbela99/php56-backport.next
Browse files Browse the repository at this point in the history
#124 multiprocessing - php5 backport
  • Loading branch information
tbela99 committed Aug 12, 2022
2 parents ac8752b + c39b329 commit 23441b5
Show file tree
Hide file tree
Showing 598 changed files with 61,296 additions and 9,872 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# top-most EditorConfig file
root = true
# 4 space indentation
[*]
end_of_line = lf
[*.php]
indent_style = tab
indent_size = 4
8 changes: 7 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/tool/ export-ignore
/composer.lock export-ignore
/composer.phar export-ignore
/.editorconfig export-ignore
/.gitignore export-ignore
/.gitattributes export-ignore
/.phpunit.result.cache export-ignore
Expand All @@ -20,5 +21,10 @@
/docs/** linguist-vendored
/tool/** linguist-vendored
/benchmark/** linguist-vendored

#
# do not replace lf by crlf
*.css text
*.php text
*.json text
text eol=lf

38 changes: 18 additions & 20 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,33 @@ name: CI

on:
push:
branches: [ master, php56-backport ]
branches: [ php56-backport ]
pull_request:
branches: [ master, php56-backport ]
branches: [ php56-backport ]

jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '5.6'
extensions: mbstring, xml, curl
tools: phpunit, composer

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Install dependencies
run: composer install --prefer-dist --no-progress

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

- name: Run test suite
run: composer run-script test
- name: Run test suite
run: composer run-script test
24 changes: 12 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
composer.phar
#composer.lock
phpunit.phar
/composer.phar
/composer.lock
/phpunit.phar
phpunit
phpdocumentor.sh
benchmark/
vendor/
test/debug.txt
.idea/
.git/
.phpunit.result.cache
xpath.txt
parsing.txt
test/color.php
test/*.json
/vendor/
/test/debug.txt
/test/*.php
/test/*.css
/.idea/
/.git/
/.phpunit.result.cache
/xpath.txt
/parsing.txt
Loading

0 comments on commit 23441b5

Please sign in to comment.