Merge pull request #100 from mblsolutions/feature/laravel-v10-upgrade #61
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: Laravel Report Build and Test | |
on: | |
push: | |
branches: | |
- master | |
- v*.* | |
pull_request: | |
branches: | |
- master | |
- v*.* | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: true | |
matrix: | |
php: ["8.0", "8.1"] | |
laravel: ["^8.0", "^9.0", "^10.0"] | |
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies | |
run: "composer update --with='illuminate/contracts:${{ matrix.laravel }}' --prefer-dist --no-interaction --no-progress" | |
- name: Execute tests via PHPUnit | |
run: vendor/bin/phpunit |