This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
Add laravel 11 support (#23) #18
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: PHP Unit | |
on: [push, pull_request] | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: [ '8.1' ] | |
name: PHP ${{ matrix.php-versions }} - PHPUnit | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
coverage: xdebug | |
- name: Check PHP Version | |
run: php -v | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Config composer | |
run: composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-interaction | |
- name: Run test suite | |
run: vendor/bin/phpunit --coverage-clover=coverage.xml | |
- name: Upload Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
fail_ci_if_error: false | |
verbose: true |