Symfony 6 support #22
Workflow file for this run
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: "CI" | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build: | |
name: PHP ${{ matrix.php }} | |
runs-on: 'ubuntu-latest' | |
strategy: | |
matrix: | |
php: [ '7.3', '7.4', '8.0' ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP ${{ matrix.php }} and composer | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none # disable xdebug, pcov | |
tools: composer:v2 | |
- name: "Set composer cache directory" | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: "Cache composer" | |
uses: actions/cache@v2.1.2 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('composer.json') }} | |
restore-keys: ${{ runner.os }}-${{ matrix.php-version }}-composer- | |
- name: Install dependencies | |
run: composer update | |
- name: Run CI | |
run: vendor/bin/phpunit |