Skip to content

Commit dd145e4

Browse files
committed
Merge branch '1.x'
2 parents 713366a + d2e19f2 commit dd145e4

File tree

9 files changed

+73
-5799
lines changed

9 files changed

+73
-5799
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ jobs:
3333
- '1.27'
3434
- '1.28'
3535
- '1.28.1'
36+
- '1.28.2'
3637
- '2.0.0'
3738
- '2.1.0'
3839
- '2.2.0'
3940
- '2.2.1'
4041
- '2.3.0'
42+
- '2.4.0'
4143

4244
name: PHP ${{ matrix.php }} - TIKA ${{ matrix.tika }}
4345

@@ -49,7 +51,7 @@ jobs:
4951
uses: actions/cache@v1
5052
with:
5153
path: bin
52-
key: binaries-apache-tika
54+
key: binaries-apache-tika-${{ matrix.tika }}
5355

5456
- name: Cache PHP dependencies
5557
uses: actions/cache@v1
@@ -70,11 +72,12 @@ jobs:
7072
uses: shivammathur/setup-php@v2
7173
with:
7274
php-version: ${{ matrix.php }}
73-
extensions: curl, dom, gd, json, libxml, mbstring, zip
74-
coverage: none
75-
75+
extensions: curl, dom, gd, json, libxml, mbstring, zip, xdebug
76+
7677
- name: Install dependencies
77-
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
78+
run: |
79+
composer config platform.php 7.3.0
80+
composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
7881
7982
- name: Download Apache Tika binaries
8083
run: APACHE_TIKA_VERSION=${{ matrix.tika }} scripts/download.sh
@@ -83,4 +86,8 @@ jobs:
8386
run: APACHE_TIKA_VERSION=${{ matrix.tika }} scripts/spawn.sh
8487

8588
- name: Execute tests
86-
run: APACHE_TIKA_VERSION=${{ matrix.tika }} vendor/bin/phpunit --verbose
89+
run: APACHE_TIKA_VERSION=${{ matrix.tika }} vendor/bin/phpunit --verbose
90+
91+
- name: Code coverage
92+
uses: codecov/codecov-action@v2
93+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.phpunit.result.cache
2-
32
bin
3+
composer.lock
44
reports
55
vendor

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# Changelog
22

3-
## v1.2.2
3+
## v1.2.4
44

55
* Fix known issues before parsing response (see [LOG4J2-2537](https://issues.apache.org/jira/browse/LOG4J2-2537))
6-
* Tested up to Apache Tika 1.28.1 and 2.3.0
6+
* Tested up to Apache Tika 1.28.2 and 2.4.0
7+
8+
## v1.2.3
9+
10+
* Removed debug statement when the JSON parse fails
11+
* Added new known issues to README.md
12+
* Tests runs now on GitHub Actions
713

814
## v1.2.1
915

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Build status](https://img.shields.io/github/workflow/status/vaites/php-apache-tika/tests/1.x)](https://github.com/vaites/php-apache-tika/actions)
44
[![Code coverage](https://img.shields.io/codecov/c/github/vaites/php-apache-tika.svg)](https://codecov.io/github/vaites/php-apache-tika)
55
[![Code quality](https://img.shields.io/scrutinizer/quality/g/vaites/php-apache-tika.svg)](https://scrutinizer-ci.com/g/vaites/php-apache-tika/)
6-
[![Code insight](https://img.shields.io/sensiolabs/i/92852e11-8648-4d48-9698-653aee765df5.svg)](https://insight.sensiolabs.com/projects/92852e11-8648-4d48-9698-653aee765df5)
6+
[![Code insight](https://img.shields.io/sensiolabs/i/92852e11-8648-4d48-9698-653aee765df5.svg)](https://insight.symfony.com/projects/92852e11-8648-4d48-9698-653aee765df5)
77
[![License](https://img.shields.io/github/license/vaites/php-apache-tika.svg?color=%23999999)](https://github.com/vaites/php-apache-tika/blob/master/LICENSE)
88

99
# PHP Apache Tika
@@ -31,7 +31,7 @@ to work with the new versions of the tool.
3131
* Support for local and remote resources
3232
* No heavyweight library dependencies
3333
* Compatible with Apache Tika 1.15 or greater
34-
* Tested up to 1.28.1 and 2.3.0
34+
* Tested up to 1.28.2 and 2.4.0
3535
* Works on Linux, macOS, Windows and probably on FreeBSD
3636

3737
## Requirements

composer.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,17 @@
4141
"phpstan/phpstan": "^0.12.26",
4242
"symfony/var-dumper": "^5.1",
4343
"filp/whoops": "^2.7",
44-
"psy/psysh": "^0.10.8"
44+
"psy/psysh": "^0.10.8",
45+
"nunomaduro/collision": "^5.11"
4546
},
4647
"extra": {
4748
"supported-versions": [
4849
"1.15", "1.16", "1.17", "1.18", "1.19", "1.19.1", "1.20", "1.21",
49-
"1.22", "1.23", "1.24", "1.24.1", "1.25", "1.26","1.27", "1.28", "1.28.1",
50-
"2.0.0", "2.1.0", "2.2.0", "2.2.1", "2.3.0"
50+
"1.22", "1.23", "1.24", "1.24.1", "1.25", "1.26","1.27", "1.28", "1.28.1", "1.28.2",
51+
"2.0.0", "2.1.0", "2.2.0", "2.2.1", "2.3.0", "2.4.0"
5152
]
53+
},
54+
"scripts": {
55+
"test": "vendor/bin/phpunit --coverage-html reports"
5256
}
5357
}

0 commit comments

Comments
 (0)