diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index c2f8cb6..47e1277 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -7,14 +7,17 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v3 + - name: Check out the repo + uses: actions/checkout@v2 with: fetch-depth: 2 + - name: Configure Git Safe Directory + run: git config --global --add safe.directory /app + - run: git checkout HEAD^2 - name: Run Linter run: | docker run --rm -v $PWD:/app composer sh -c \ - "composer install --profile --ignore-platform-reqs && composer lint" \ No newline at end of file + "composer install --profile --ignore-platform-reqs && composer lint" diff --git a/composer.json b/composer.json index 791af77..b502bcf 100644 --- a/composer.json +++ b/composer.json @@ -2,27 +2,32 @@ "name": "utopia-php/image", "description": "A simple Image manipulation library", "type": "library", + "version": "2.7.9", "keywords": ["php","framework","upf","utopia","image"], "license": "MIT", "autoload": { "psr-4": {"Utopia\\Image\\":"src/Image"} }, + "scripts": { "lint": "./vendor/bin/pint --test", "format": "./vendor/bin/pint", "check": "./vendor/bin/phpstan analyse --level max src tests", "test": "phpunit" }, + "require": { "php": ">=8.1", "ext-imagick": "*", "ext-gd": "*" }, + "require-dev": { "phpunit/phpunit": "^9.3", "vimeo/psalm": "4.13.1", "phpstan/phpstan": "^1.10.0", "laravel/pint": "1.2.*" }, + "minimum-stability": "dev" } diff --git a/pint.json b/pint.json new file mode 100644 index 0000000..697475a --- /dev/null +++ b/pint.json @@ -0,0 +1,6 @@ +{ + "preset": "psr12", + "exclude": [ + "tests/resources" + ] +}