Update php.yml (#219) #85
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 Composer | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: | |
- '7.3' | |
- '7.4' | |
- '8.0' | |
- '8.1' | |
- '8.2' | |
- '8.3' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
- name: Composer validate | |
run: composer validate | |
- name: Cache Composer cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/.composer/cache | |
key: composer-cache-php${{ matrix.php }} | |
- name: Composer install | |
run: composer install --no-progress --no-suggest --no-interaction --prefer-dist --optimize-autoloader | |
- name: Run test suite | |
run: composer ci |