Merge pull request #271 from IamDejv/DGS-2790-batch-sending-list #1195
This file contains 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: CI | |
on: | |
- pull_request | |
- push | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [8.0, 8.1, 8.2, 8.3] | |
dependency-version: [prefer-lowest, prefer-stable] | |
name: PHP ${{ matrix.php }} (${{ matrix.dependency-version }}) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.composer/cache/files | |
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: mbstring, zip | |
tools: cs2pr | |
coverage: pcov | |
- name: Composer Dependencies | |
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist | |
- name: CodeSniffer | |
run: vendor/bin/phpcs --report=checkstyle | cs2pr | |
- name: PHPStan | |
run: vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr | |
- name: PHPUnit | |
run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml | |
- name: Setup problem matchers for PHPUnit | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |