Merge pull request #3 from nails/feature/pre-new-admin-ci-php8 #28
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_and_test | |
| on: [ push ] | |
| jobs: | |
| test: | |
| name: build_and_test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Setup PHP, with composer and extensions | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.1 | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
| restore-keys: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
| - name: Install Composer dependencies | |
| run: composer update | |
| - name: Run tests | |
| run: composer test | |
| - name: PHPStan Static Analysis | |
| run: composer analyse |