-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from mpdude/mpdude-changes
Updates, deprecation fixes and GitHub Actions CI setup
- Loading branch information
Showing
24 changed files
with
122 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Dependencies | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
env: | ||
PHP_VERSION: 7.4 | ||
|
||
jobs: | ||
composer-require-checker: | ||
name: Check missing composer requirements | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ env.PHP_VERSION }} | ||
tools: composer:v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: vendor | ||
key: composer-${{ runner.os }}-${{ env.PHP_VERSION }}-${{ hashFiles('composer.json') }} | ||
restore-keys: | | ||
composer-${{ runner.os }}-${{ env.PHP_VERSION }}- | ||
composer-${{ runner.os }}- | ||
- run: | | ||
composer install --no-interaction --no-progress --ansi --no-scripts | ||
composer show | ||
- uses: docker://webfactory/composer-require-checker:3.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
cat <<< $(jq --arg version $VERSION '.require |= with_entries(if ((.key|test("^symfony/service-contracts")|not) and (.key|test("^symfony/"))) then .value=$version else . end)' < composer.json) > composer.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: weak | ||
|
||
jobs: | ||
PHPUnit: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- { php-version: 7.2, symfony-locked-version: none, dependency-version: prefer-lowest } | ||
- { php-version: 7.4, symfony-locked-version: 4.4.*, dependency-version: prefer-stable } | ||
- { php-version: 8.1, symfony-locked-version: 5.4.*, dependency-version: prefer-stable } | ||
- { php-version: 8.1, symfony-locked-version: none, dependency-version: prefer-stable } | ||
name: PHPUnit (PHP ${{matrix.php-version}}, Symfony Version Lock ${{ matrix.symfony-locked-version }}, ${{ matrix.dependency-version }}) | ||
steps: | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
tools: composer:v2 | ||
- uses: actions/checkout@v3 | ||
- run: VERSION=${{ matrix.symfony-locked-version }} .github/workflows/lock-symfony-version.sh | ||
if: matrix.symfony-locked-version != 'none' | ||
- uses: actions/cache@v2 | ||
with: | ||
path: vendor | ||
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.symfony-locked-version }}-${{ matrix.dependency-version }}-${{ hashFiles('composer.json') }} | ||
restore-keys: | | ||
composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.symfony-locked-version }}-${{ matrix.dependency-version }}- | ||
- run: | | ||
composer update --no-interaction --no-progress --ansi --no-scripts --${{ matrix.dependency-version}} | ||
composer show | ||
- run: vendor/bin/phpunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
{ | ||
"name": "jbouzekri/phumbor-bundle", | ||
"type": "symfony-bundle", | ||
"description": "A bridge for symfony with the phumbor client from 99designs", | ||
"description": "A Symfony Bundle to use the minimal Thumbor PHP client from webfactory/phumbor", | ||
"keywords": ["phumbor", "thumbor", "Bundle", "Helper", "Twig", "Symfony"], | ||
"homepage": "https://github.com/jbouzekri/PhumborBundle", | ||
"license": "MIT", | ||
"require": { | ||
"php": "^7.2|8.0.*|8.1.*", | ||
"symfony/config": "^3.4|^4.4|^5.0|^6.0", | ||
"symfony/dependency-injection": "^3.4|^4.4|^5.0|^6.0", | ||
"symfony/http-kernel": "^3.4|^4.4|^5.0|^6.0", | ||
"twig/twig": "^1.34|^2.0|^3.0", | ||
"webfactory/phumbor": "^1.1" | ||
}, | ||
"require-dev": { | ||
"symfony/config": "^3.4", | ||
"symfony/dependency-injection": "^3.4", | ||
"symfony/http-kernel": "^3.4", | ||
"symfony/yaml": "^3.4", | ||
"phpunit/phpunit": "^7.0", | ||
"twig/extensions": "~1.0" | ||
}, | ||
"conflict": { | ||
"twig/twig": "<1.34" | ||
"phpunit/phpunit": "^8.5.26|^9.5.20", | ||
"symfony/yaml": "^3.4|^4.4|^5.0|^6.0", | ||
"twig/extensions": "~1.0", | ||
"symfony/phpunit-bridge": ">=6.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { "Jb\\Bundle\\PhumborBundle\\": "" } | ||
"psr-4": { "Jb\\Bundle\\PhumborBundle\\": "src" } | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { "Jb\\Bundle\\PhumborBundle\\Tests\\": "tests" } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters