diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..47f9b3b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: Build + +on: + push: + pull_request: + +jobs: + run: + runs-on: ubuntu-latest + + strategy: + matrix: + php-versions: ['7.2', '7.3'] + composer-stability: [ 'prefer-lowest', 'prefer-stable' ] + + name: PHP ${{ matrix.php-versions }} - ${{ matrix.composer-stability }} + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + tools: composer:v2 + + - name: Validate composer.json + run: composer validate + + - name: Install dependencies + run: composer update --prefer-source --no-interaction --${{ matrix.composer-stability }} + + - name: Run phpspec tests + run: ./bin/phpspec run --format=dot + + - name: Run behat tests + run: ./bin/behat diff --git a/README.md b/README.md index 0f0a52d..7631ffe 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -#PhpSpec data provider extension +# PhpSpec data provider extension [![Build Status](https://travis-ci.org/coduo/phpspec-data-provider-extension.svg?branch=master)](https://travis-ci.org/coduo/phpspec-data-provider-extension) +[![GitHub Actions](https://github.com/madisoft/phpspec-data-provider-extension/workflows/Build/badge.svg)](https://github.com/madisoft/phpspec-data-provider-extension/actions) This extension allows you to create data providers for examples in specs. diff --git a/composer.json b/composer.json index 42fad6a..88936e4 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,6 @@ { "name": "moave/phpspec-data-provider-extension", + "description": "This extension allows you to create data providers for examples in specs.", "type": "library", "keywords": ["phpspec", "dataprovider", "extension", "coduo", "data", "provider"], "license": "MIT",