Update phpunit/phpunit requirement from ^9.6 to ^11.4 #106
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: Build | |
on: | |
push: | |
branches: [ develop, master ] | |
pull_request: | |
branches: [ develop, master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: PHP ${{ matrix.name }} | |
strategy: | |
matrix: | |
include: | |
- php: 8.1 | |
allow_fail: true | |
php_ini: 'xdebug.coverage_enable=On' | |
name: 'PHP 8.1 with latest deps' | |
- php: 8.1 | |
allow_fail: true | |
composer_update_flags: '--prefer-lowest --prefer-stable' | |
php_ini: 'xdebug.coverage_enable=On' | |
name: 'PHP 8.1 with lowest stable deps' | |
- php: 8.2 | |
allow_fail: true | |
php_ini: 'xdebug.coverage_enable=On' | |
name: 'PHP 8.2 with latest deps' | |
- php: 8.2 | |
allow_fail: true | |
composer_update_flags: '--prefer-lowest --prefer-stable' | |
php_ini: 'xdebug.coverage_enable=On' | |
name: 'PHP 8.2 with lowest stable deps' | |
- php: 8.3 | |
allow_fail: true | |
php_ini: 'xdebug.coverage_enable=On' | |
name: 'PHP 8.3 with latest deps' | |
- php: 8.3 | |
allow_fail: true | |
composer_update_flags: '--prefer-lowest --prefer-stable' | |
php_ini: 'xdebug.coverage_enable=On' | |
name: 'PHP 8.3 with lowest stable deps' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Setup PHP ${{ matrix.php }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: xdebug | |
ini-values: ${{ matrix.php_ini }} | |
- name: Install dependencies | |
run: composer install ${{ matrix.composer_flags }} | |
continue-on-error: ${{ matrix.allow_fail }} | |
- name: Update dependencies | |
if: matrix.composer_update_flags | |
run: composer update ${{ matrix.composer_update_flags }} && composer update phpunit/phpunit --with-dependencies | |
continue-on-error: ${{ matrix.allow_fail }} | |
- name: Create log folder | |
run: mkdir -p build/logs; | |
- name: Run unit tests | |
run: composer unit-tests | |
continue-on-error: ${{ matrix.allow_fail }} | |
- name: Run integration tests | |
run: composer integration-tests | |
continue-on-error: ${{ matrix.allow_fail }} | |
- name: Upload test coverage | |
run: php vendor/bin/php-coveralls -vvv | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_PARALLEL: true | |
COVERALLS_FLAG_NAME: ${{ matrix.name }} | |
continue-on-error: ${{ matrix.allow_fail }} | |
finish: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
run: | | |
curl --header "Content-Type: application/json" \ | |
--request POST \ | |
--data '{"repo_token":"${{ secrets.GITHUB_TOKEN }}","repo_name":"DannyvdSluijs/exact-online-meta-data-tool", "payload": {"build_num": "${{ github.sha }}", "status": "done"}}' \ | |
https://coveralls.io/webhook |