diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7c578ca..1ee3acc 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,3 +5,7 @@ updates: schedule: interval: "weekly" versioning-strategy: widen + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml new file mode 100644 index 0000000..dc82310 --- /dev/null +++ b/.github/workflows/phpunit.yml @@ -0,0 +1,57 @@ +name: PHPUnit + +on: pull_request + +permissions: + contents: read + +concurrency: + group: phpunit-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + phpunit: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + php-versions: ['8.1', '8.2', '8.3', '8.4'] + + name: PHP ${{ matrix.php-versions }} + + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Set up php ${{ matrix.php-versions }} + uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1 + with: + php-version: ${{ matrix.php-versions }} + coverage: none + ini-file: development + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up dependencies + run: composer i + + - name: PHPUnit with ZSH + run: SHELL=zsh vendor/bin/phpunit + + - name: PHPUnit with BASH + run: SHELL=bash vendor/bin/phpunit + + summary: + permissions: + contents: none + runs-on: ubuntu-latest + needs: [phpunit] + + if: always() + + name: phpunit-summary + + steps: + - name: Summary status + run: if ${{ needs.phpunit.result != 'success' }}; then exit 1; fi diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 77ad26c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: php - -matrix: - include: - - php: 5.4 - - php: 5.5 - env: COMPOSER_OPTS="--prefer-lowest" - - php: 5.6 - - php: 7.0 - - php: 7.1 - - php: 7.2 - - php: nightly - - php: hhvm - - php: hhvm-3.3 - env: COMPOSER_OPTS="--prefer-lowest" - - allow_failures: - - php: nightly - - php: hhvm - -before_install: - - sudo apt-get update -qq - - sudo apt-get install -y bash zsh - -install: - - composer self-update - - composer update $COMPOSER_OPTS - -script: - - vendor/bin/phpunit diff --git a/README.md b/README.md index 4a1152c..26cb2e5 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,11 @@ # BASH/ZSH auto-complete for Symfony Console applications -[![Build Status](https://travis-ci.org/stecman/symfony-console-completion.svg?branch=master)](https://travis-ci.org/stecman/symfony-console-completion) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/stecman/symfony-console-completion/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/stecman/symfony-console-completion/?branch=master) -[![Latest Stable Version](https://poser.pugx.org/stecman/symfony-console-completion/v/stable.png)](https://packagist.org/packages/stecman/symfony-console-completion) -[![Total Downloads](https://poser.pugx.org/stecman/symfony-console-completion/downloads.png)](https://packagist.org/packages/stecman/symfony-console-completion) -[![Latest Unstable Version](https://poser.pugx.org/stecman/symfony-console-completion/v/unstable.svg)](https://packagist.org/packages/stecman/symfony-console-completion) -[![License](https://poser.pugx.org/stecman/symfony-console-completion/license.svg)](https://packagist.org/packages/stecman/symfony-console-completion) +[![Latest Stable Version](https://poser.pugx.org/stecman/symfony-console-completion/v)](https://packagist.org/packages/stecman/symfony-console-completion) +[![Total Downloads](https://poser.pugx.org/stecman/symfony-console-completion/downloads)](https://packagist.org/packages/stecman/symfony-console-completion) +[![License](https://poser.pugx.org/stecman/symfony-console-completion/license)](https://packagist.org/packages/stecman/symfony-console-completion) +[![PHP Version Require](https://poser.pugx.org/stecman/symfony-console-completion/require/php)](https://packagist.org/packages/stecman/symfony-console-completion) This package provides automatic (tab) completion in BASH and ZSH for Symfony Console Component based applications. With zero configuration, this package allows completion of available command names and the options they provide. User code can define custom completion behaviour for argument and option values.