Skip to content

chore(deps): bump stefanzweifel/git-auto-commit-action from 6 to 7 (#10) #66

chore(deps): bump stefanzweifel/git-auto-commit-action from 6 to 7 (#10)

chore(deps): bump stefanzweifel/git-auto-commit-action from 6 to 7 (#10) #66

Workflow file for this run

name: Unit Tests
on:
pull_request:
push:
branches:
- master
jobs:
unit-tests:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3, 8.4]
dependency-version: [prefer-stable]
steps:
# Check out the repository code
- name: Checkout
uses: actions/checkout@v5
# Set up the desired PHP version with extensions and coverage
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, mbstring, zip, sodium
coverage: pcov
# Determine the Composer cache directory
- name: Get Composer cache directory
id: composer-cache
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
# Cache both the Composer cache directory and the vendor directory
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: |
${{ env.COMPOSER_CACHE_DIR }}
vendor
key: php-${{ matrix.php }}-deps-${{ hashFiles('composer.json', 'composer.lock') }}
restore-keys: |
php-${{ matrix.php }}-deps-
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run Rector (Dry Run)
run: composer test:refactor
- name: Run Lint Tests
run: composer test:lint
- name: Run PHPStan
run: composer test:types
- name: Run Pest Tests
run: composer test:unit