Skip to content

Commit

Permalink
Initital commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Oct 26, 2023
1 parent 352d72e commit b9592b1
Show file tree
Hide file tree
Showing 19 changed files with 949 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ on:
- 'infection.json.dist'
- 'psalm.xml'

name: build
name: gmagick

jobs:
phpunit:
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
with:
extensions: intl, gmagick
os: >-
['ubuntu-latest', 'windows-latest']
php: >-
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/imagick.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'

name: imagick

jobs:
phpunit:
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
with:
extensions: intl, imagick
os: >-
['ubuntu-latest', 'windows-latest']
php: >-
['8.1', '8.2', '8.3']
16 changes: 10 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"name": "yii2/template",
"type": "library",
"description": "_____",
"name": "yii2-extensions/imagine",
"type": "yii2-extension",
"description": "The Imagine integration for the Yii framework.",
"keywords": [
"_____"
"yii2",
"imagine",
"image",
"helper"
],
"license": "mit",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.1",
"imagine/imagine": "^1.3",
"yiisoft/yii2": "^2.2"
},
"require-dev": {
Expand All @@ -19,12 +23,12 @@
},
"autoload": {
"psr-4": {
"yii\\template\\": "src"
"yii\\imagine\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"yii\\template\\tests\\": "tests"
"yiiunit\\imagine\\": "tests"
}
},
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parameters:
- YII_ENV_PROD
- YII_ENV_TEST

level: 2
level: 3

paths:
- src
Expand Down
38 changes: 19 additions & 19 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheDirectory=".phpunit.cache"
colors="true"
executionOrder="depends,defects"
failOnRisky="true"
failOnWarning="true"
stopOnFailure="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd"
bootstrap="tests/bootstrap.php"
cacheDirectory=".phpunit.cache"
colors="true"
executionOrder="depends,defects"
failOnRisky="true"
failOnWarning="true"
stopOnFailure="false"
>
<testsuites>
<testsuite name="Template">
<directory>tests</directory>
</testsuite>
</testsuites>
<testsuites>
<testsuite name="Yii2-Imagine">
<directory>tests</directory>
</testsuite>
</testsuites>

<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
Loading

0 comments on commit b9592b1

Please sign in to comment.