Skip to content

Commit b13446c

Browse files
committed
Merge branch 'release/1.2.5'
2 parents d2e18be + f7878a3 commit b13446c

File tree

257 files changed

+4113
-2252
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+4113
-2252
lines changed

.appveyor.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.appveyor/configure.ps1

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/workflows/coding-style.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Coding Style
2+
3+
on:
4+
push:
5+
paths:
6+
- .github/workflows/coding-style.yml
7+
- "**.php"
8+
pull_request:
9+
paths:
10+
- .github/workflows/coding-style.yml
11+
- "**.php"
12+
13+
jobs:
14+
php:
15+
name: PHP Coding Style
16+
runs-on: ubuntu-latest
17+
steps:
18+
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
22+
- name: Install PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: "7.4"
26+
coverage: none
27+
tools: php-cs-fixer:v3
28+
29+
- name: Run php-cs-fixer
30+
run: php-cs-fixer fix --path-mode=intersection --config=.php-cs-fixer.dist.php --dry-run --using-cache=no --diff --ansi --no-interaction .

.github/workflows/phpunit.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: PHPUnit
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/phpunit.yml
7+
- "src/**"
8+
- "tests/**"
9+
- composer.json
10+
- phpunit.xml.dist
11+
push:
12+
paths:
13+
- .github/workflows/phpunit.yml
14+
- "src/**"
15+
- "tests/**"
16+
- composer.json
17+
- phpunit.xml.dist
18+
19+
env:
20+
ALL_DRIVERS: "gd gmagick imagick"
21+
IMAGINE_TEST_WEBSERVERURL: http://localhost:8013
22+
23+
jobs:
24+
test:
25+
name: PHP ${{ matrix.php-version }} - ${{ matrix.extensions }} (Ubuntu)
26+
runs-on: ubuntu-latest
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
php-version:
31+
- "8.3"
32+
- "8.4"
33+
extensions:
34+
- gd,imagick
35+
- gd,gmagick
36+
steps:
37+
- name: Setup PHP
38+
uses: shivammathur/setup-php@v2
39+
with:
40+
php-version: ${{ matrix.php-version }}
41+
extensions: exif,${{ matrix.extensions }}
42+
tools: composer:v2
43+
coverage: none
44+
45+
- name: Inspect environment
46+
id: inspect
47+
run: |
48+
EXCLUDED_GROUPS=always-skipped
49+
for DRIVER in $ALL_DRIVERS; do
50+
echo "### CHECKING $DRIVER"
51+
if ! php --ri $DRIVER; then
52+
EXCLUDED_GROUPS="$EXCLUDED_GROUPS,$DRIVER"
53+
fi
54+
echo ''
55+
done
56+
echo "excluded-groups=$EXCLUDED_GROUPS" >> $GITHUB_OUTPUT
57+
58+
- name: Checkout
59+
uses: actions/checkout@v4
60+
61+
- name: Install composer dependencies
62+
run: composer update --ansi --no-interaction
63+
64+
- name: Start test web server
65+
uses: Eun/http-server-action@v1
66+
with:
67+
directory: ${{ github.workspace }}/tests
68+
port: 8013
69+
70+
- name: PHPUnit
71+
run: composer run test --ansi --no-interaction -- --exclude-group "${{ steps.inspect.outputs.excluded-groups }}" --stop-on-error --stop-on-failure
72+
73+
- name: Save tests temporary files
74+
if: always() && env.IMAGINE_TEST_KEEP_TEMPFILES == 'yes'
75+
uses: actions/upload-artifact@v4
76+
with:
77+
name: ubuntu-${{ matrix.php-version }}-${{ matrix.extensions }}
78+
path: tests/tmp/
79+
retention-days: 1

.gitignore

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
/bin/
12
/docs/_build/cache/
23
/docs/_build/doctrees/
34
/docs/_build/html/
4-
composer.lock
5-
vendor/
6-
bin/
7-
/.php_cs.cache
8-
/.php_cs
5+
/docs/_build/vendor/
6+
/docs/_build/composer.lock
7+
/tests/tmp/
8+
/vendor/
9+
/composer.lock
10+
/.php-cs-fixer.cache
11+
/.php-cs-fixer.php
912
/.phpunit.result.cache
10-
/tests/tmp

0 commit comments

Comments
 (0)