[Release] v2.1.0 Symfony 7 Kompatibilität #40
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: GitHub Actions | |
on: | |
pull_request: | |
push: | |
branches: [ master ] | |
jobs: | |
phpunit: | |
name: PHPUnit / php ${{ matrix.php-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [ '8.1' ] | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Setup php | |
uses: shivammathur/[email protected] | |
with: | |
php-version: ${{ matrix.php-version }} | |
tools: composer:v2 | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Get composer cache dir | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache composer | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install composer dependencies | |
run: composer install --quiet --no-interaction --prefer-dist --no-progress | |
- name: Run tests | |
run: vendor/bin/phpunit -v |