diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 71f9c1f..e2c236e 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -2,56 +2,12 @@ name: Continuous Integration on: push: - paths-ignore: - - '**.md' pull_request: - paths-ignore: - - '**.md' workflow_dispatch: jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - operating-system: - - ubuntu-latest - php-version: - - '8.0' - - '8.1' - - '8.2' - - '8.3' - - '8.4' - - '8.5' - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup PHP ${{ matrix.php-version }} - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-version }} - coverage: none - tools: none - ini-values: assert.exception=1, zend.assertions=1 - - - name: Get composer cache directory - id: composer-cache - run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - - name: Cache dependencies - uses: actions/cache@v4 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: | - ${{ runner.os }}-php${{ matrix.php-version }}-composer- - ${{ runner.os }}-composer- - - - name: Install dependencies - run: composer update --no-interaction --no-progress --prefer-dist - - - name: Run test suite - run: ./vendor/bin/phpunit + ci: + uses: ray-di/.github/.github/workflows/continuous-integration.yml@v1 + with: + old_stable: '["8.0", "8.1", "8.2", "8.3", "8.4", "8.5"]' + current_stable: 8.6 diff --git a/composer.json b/composer.json index 6f8b471..3821d93 100644 --- a/composer.json +++ b/composer.json @@ -16,13 +16,8 @@ "ray/aura-session-module": "^1.1" }, "require-dev": { - "phpunit/phpunit": "^9.5", - "doctrine/coding-standard": "^14.0", - "phpstan/phpstan": "^1.10", - "squizlabs/php_codesniffer": "^4.0", - "vimeo/psalm": "^5.0 || ^6.0", - "phpmd/phpmd": "^2.13", - "maglnet/composer-require-checker": "^4.0" + "bamarni/composer-bin-plugin": "^1.4", + "phpunit/phpunit": "^9.5" }, "license": "MIT", "autoload":{ @@ -50,7 +45,13 @@ "config": { "allow-plugins": { "aura/installer-default": true, - "dealerdirect/phpcodesniffer-composer-installer": true + "bamarni/composer-bin-plugin": true + } + }, + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": true } } } diff --git a/vendor-bin/tools/composer.json b/vendor-bin/tools/composer.json new file mode 100644 index 0000000..3eb1d42 --- /dev/null +++ b/vendor-bin/tools/composer.json @@ -0,0 +1,15 @@ +{ + "require-dev": { + "doctrine/coding-standard": "^14.0", + "maglnet/composer-require-checker": "^4.0", + "phpmd/phpmd": "^2.13", + "phpstan/phpstan": "^1.10", + "squizlabs/php_codesniffer": "^4.0", + "vimeo/psalm": "^5.0 || ^6.0" + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } + } +}