Add list() methods and deprecate all() methods #208
Workflow file for this run
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: Tests | |
on: | |
push: | |
pull_request: | |
jobs: | |
tests: | |
name: Tests (PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
operating-system: ["ubuntu-latest"] | |
php-versions: ["7.4", "8.0", "8.1", "8.2"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- run: echo '💡 The ${{ github.repository }} repository has been cloned to the runner.' | |
- name: Setup PHP, with composer and extensions | |
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php | |
with: | |
php-version: ${{ matrix.php-versions }} | |
tools: phpunit | |
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite | |
coverage: xdebug | |
# Install composer dependencies and handle caching in one go. | |
# @link https://github.com/marketplace/actions/install-composer-dependencies | |
- name: "Install Composer dependencies" | |
uses: "ramsey/composer-install@v2" | |
- name: Run static code analysis | |
if: ${{ matrix.php-versions == '8.2' }} | |
run: composer run phpstan -- --error-format=github | |
- name: Run tests | |
run: vendor/bin/phpunit --coverage-clover .phpunit.cache/clover.xml | |
- name: Upload coverage reports to Codecov | |
if: ${{ success() && matrix.php-versions == '8.2' }} | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./.phpunit.cache/clover.xml | |
fail_ci_if_error: true | |
verbose: true |