Refactor: Apply common PHP & Laravel community standards #36
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
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/[email protected] | |
| with: | |
| php-version: '7.4' | |
| extensions: xdebug | |
| coverage: xdebug | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate | |
| - name: Cache dependencies installed with composer | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor | |
| key: php7.4-composer-locked-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| php7.4-composer-locked- | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress --no-suggest | |
| - name: CI | |
| run: composer ci | |
| - name: Run tests | |
| run: composer coverage |