Bump actions/checkout from 4 to 5 #218
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: build | |
| on: [push, pull_request] | |
| jobs: | |
| run: | |
| runs-on: ${{ matrix.operating-system }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| operating-system: ['ubuntu-latest'] | |
| php-versions: | |
| - '8.4' | |
| - '8.3' | |
| - '8.2' | |
| - '8.1' | |
| - '8.0' | |
| - '7.4' | |
| - '7.3' | |
| - '7.2' | |
| - '7.1' | |
| - '7.0' | |
| - '5.6' | |
| - '5.5' | |
| - '5.4' | |
| - '5.3' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| extensions: mbstring, intl, dom | |
| ini-values: max_execution_time=0 | |
| coverage: xdebug | |
| - name: Setup PHP_VERSION env variable | |
| run: | | |
| echo PHP_VERSION=$(echo "<?php echo join('.', array_slice(explode('.', PHP_VERSION), 0, 2)); " | php) >> $GITHUB_ENV | |
| - name: Install dependencies | |
| run: | | |
| echo PHP_VERSION: ${{ env.PHP_VERSION }} | |
| composer install | |
| - name: Run tests | |
| run: | | |
| mkdir -p build/logs | |
| COMPOSER_PROCESS_TIMEOUT=0 composer test -- --coverage-clover build/logs/clover.xml | |
| - name: Upload coverage results to Coveralls | |
| env: | |
| COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| if [ -f "build/logs/clover.xml" ] && [ -f "vendor/bin/php-coveralls" ]; then | |
| php vendor/bin/php-coveralls -v; | |
| fi | |
| continue-on-error: true |