Skip to content

Commit

Permalink
Merge pull request #55 from kiwilan/develop
Browse files Browse the repository at this point in the history
v2.3.01
  • Loading branch information
ewilan-riviere authored Jan 18, 2025
2 parents 2abe7c2 + 8464597 commit b45a04c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 22 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
sudo cp ./modules/rar.so $pecl_path
sudo echo "extension=rar.so" > $phpini_path
- name: Create .env file
run: |
cp .env.example .env
shell: bash

- name: Check extension rar
run: php -m | grep rar

Expand All @@ -63,7 +68,7 @@ jobs:
run: vendor/bin/pest --coverage

- name: Send code coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false
16 changes: 0 additions & 16 deletions .github/workflows/run-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,11 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-interaction

- name: Add rar extension
run: |
git clone https://github.com/cataphract/php-rar
cd php-rar
phpize
./configure
sudo make
sudo make install
pecl_path=$(pecl config-get ext_dir)
phpini_path=$(php -i | grep /.+/php.ini -oE)
sudo cp ./modules/rar.so $pecl_path
sudo echo "extension=rar.so" > $phpini_path
- name: Create .env file
run: |
cp .env.example .env
shell: bash

- name: Check extension rar
run: php -m | grep rar

- name: Check extension imagick
run: php -m | grep imagick

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2, 8.3]
php: [8.1, 8.2, 8.3, 8.4]
stability: [prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kiwilan/php-archive",
"version": "2.3.0",
"version": "2.3.01",
"description": "PHP package to handle archives (.zip, .rar, .tar, .7z, .pdf) with unified API and hybrid solution (native/p7zip), designed to works with EPUB and CBA (.cbz, .cbr, .cb7, .cbt).",
"keywords": [
"php",
Expand Down
2 changes: 0 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ parameters:

# The level 9 is the highest level
level: 5

checkMissingIterableValueType: false
3 changes: 2 additions & 1 deletion tests/ArchiveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,5 @@ function (Pest\Expectation $item) use ($ext) {
$file = $archive->getFileItem('archive/file-1.md');
$text = $archive->getText($file);
expect($text)->toBeString();
})->with([SEVENZIP]);
})->with([SEVENZIP])
->skip(PHP_OS_FAMILY === 'Darwin', 'Skip on MacOS');

0 comments on commit b45a04c

Please sign in to comment.