bump to php 7.3 and run composer update #28
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Continuous Integration | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} | |
| runs-on: ${{ matrix.operating-system }} | |
| strategy: | |
| matrix: | |
| operating-system: [ 'ubuntu-latest' ] | |
| php-versions: [ '7.3', '7.4', '8.0', '8.1' ] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate --strict --no-check-publish --ansi | |
| - name: Get composer cache directory | |
| id: composer-cache | |
| run: echo "dir::$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
| - name: Cache composer dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: ${{ runner.os }}-composer- | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Run PHP-CS-Fixer | |
| run: vendor/bin/php-cs-fixer fix --dry-run --diff --ansi | |
| - name: Run PHPStan | |
| run: vendor/bin/phpstan analyze --memory-limit=-1 --ansi | |
| - name: Run PHPUnit | |
| run: vendor/bin/phpunit --colors=always --coverage-clover=coverage.xml | |
| - name: Run PHP MD | |
| run: vendor/bin/phpmd src text ruleset.xml --suffixes php | |
| - name: Upload Code Coverage to Codecov.io | |
| uses: codecov/codecov-action@v4 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |