Merge @sikessem/values #2
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 | |
permissions: | |
contents: read | |
on: ['push', 'pull_request'] | |
jobs: | |
ci: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-latest] | |
php: [8.2, 8.3] | |
dependencies: [lowest, highest] | |
experimental: [false] | |
name: π· CI PHP-${{ matrix.php }} ${{ matrix.dependencies }} on ${{ matrix.os }} | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v4 | |
- name: π Cache dependencies | |
id: composer-cache | |
run: | | |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} | |
restore-keys: | | |
${{ runner.os }}-dependencies-php-${{ matrix.php }}-composer- | |
- name: β‘οΈ Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: curl, dom, gd, intl, mbstring, openssl, tokenizer, zip | |
ini-values: error_reporting=E_ALL | |
tools: composer:v2, php-cs-fixer, phpunit, vimeo/psalm | |
coverage: pcov | |
- name: π± Install Composer dependencies | |
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist | |
- name: β Check code lint | |
run: composer lint | |
- name: βοΈ Run static analysis | |
run: | | |
composer analyse | |
composer inspect | |
- name: π§ͺ Run unit tests | |
run: composer test | |
- name: π Check all code bugs | |
run: composer debug |