Lock file maintenance #3433
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
on: [ push, pull_request ] | |
name: CodeStyle | |
jobs: | |
code-style-tests: | |
name: "Style Checks" | |
runs-on: "ubuntu-latest" | |
continue-on-error: ${{ matrix.allow-fail }} | |
strategy: | |
matrix: | |
include: | |
- { php-version: 8.2, dependencies: locked, coverage: none, with_coverage: false, allow-fail: false } | |
steps: | |
- name: "Checkout" | |
uses: "actions/[email protected]" | |
- name: "Set up PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "${{ matrix.coverage }}" | |
ini-values: display_errors=On, display_startup_errors=On, error_reporting=32767 | |
php-version: "${{ matrix.php-version }}" | |
- name: "Set up problem matchers for PHP" | |
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\"" | |
- name: "Set up problem matchers for phpunit/phpunit" | |
run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\"" | |
- name: "Validate composer.json and composer.lock" | |
run: "composer validate --ansi --strict" | |
- name: "Determine composer cache directory" | |
uses: "ergebnis/.github/actions/composer/[email protected]" | |
- name: "Cache dependencies installed with composer" | |
uses: "actions/[email protected]" | |
with: | |
path: "${{ env.COMPOSER_CACHE_DIR }}" | |
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" | |
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" | |
- name: "Install ${{ matrix.dependencies }} dependencies with composer" | |
uses: "ergebnis/.github/actions/composer/[email protected]" | |
with: | |
dependencies: "${{ matrix.dependencies }}" | |
- name: "Run PHPStan checks" | |
run: | | |
vendor/bin/codecept build -c . | |
vendor/bin/phpstan | |