diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 014ef30..29ec3cb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,3 +54,7 @@ jobs: - name: Run tests run: | vendor/bin/phpunit + + - name: Validate composer.json + run: | + composer validate --strict diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 7a227eb..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - - main - -jobs: - - tests: - runs-on: ubuntu-latest - - strategy: - matrix: - php-version: ['7.0', '7.1', '7.2', '7.3', '7.4'] - dependencies: [''] - include: - - { php-version: '8.0', dependencies: '--ignore-platform-req=php' } - - continue-on-error: ${{ matrix.php-version == '8.0' }} - name: PHP ${{ matrix.php-version }} ${{ matrix.dependencies }} - - steps: - - name: Checkout code - uses: actions/checkout@v1 - - - name: Setup PHP - uses: shivammathur/setup-php@v1 - with: - php-version: ${{ matrix.php-version }} - extensions: - coverage: none - tools: composer:v2 - - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: ~/.cache/composer - key: composer-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }} - restore-keys: | - composer-${{ matrix.php-version }}- - composer- - - - name: Install dependencies - run: | - composer update --prefer-dist --no-interaction --no-progress ${{ matrix.dependencies }} - - - name: Execute tests - run: | - php vendor/bin/phpunit - - - name: Validate composer.json - run: | - composer validate --strict