Skip to content

✨ Create a dedicated cache for the bundle #10

✨ Create a dedicated cache for the bundle

✨ Create a dedicated cache for the bundle #10

Workflow file for this run

name: ci
on:
pull_request:
branches: [ main ]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: [ '8.2' ]
steps:
- uses: actions/checkout@v3
- name: php-setup
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug
- name: composer-validate
run: composer validate
- name: composer-cache
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.php-version }}-composer-
- name: composer-install
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
- name: php-cs-fixer
run: vendor/bin/php-cs-fixer fix --dry-run --diff --verbose --ansi
- name: phpunit
run: vendor/bin/simple-phpunit