Skip to content

chore(deps): update phpstan packages #585

chore(deps): update phpstan packages

chore(deps): update phpstan packages #585

Workflow file for this run

---
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- master
name: πŸ” Continuous integration
jobs:
integration:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: ["ubuntu-22.04"]
php: ["8.2"]
steps:
- name: πŸ“¦ Check out the codebase
uses: actions/checkout@v4
- name: πŸ› οΈ Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, fileinfo
ini-values: error_reporting=E_ALL
tools: composer:v2, pecl
coverage: xdebug
- name: πŸ› οΈ Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: ♻️ Restore cached dependencies
id: cached-composer-dependencies
uses: actions/cache@v3
with:
path: vendor
key: vendor-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}-${{ matrix.php }}
- name: πŸ“₯ Install dependencies
if: steps.cached-composer-dependencies.outputs.cache-hit != 'true'
run: composer install
- name: πŸ› οΈ Prepare environment
run: |
mkdir -p ./.build/php-cs-fixer
mkdir -p ./.build/phpstan
mkdir -p ./.build/phpunit
- name: 🚨 Run coding standards task
run: composer cs:diff
env:
PHP_CS_FIXER_IGNORE_ENV: true
- name: πŸ§ͺ Execute phpunit and pest tests
run: composer test:cc
- name: πŸ” Run static analysis using phpstan
run: composer stan:ci
- name: πŸ“€ Upload coverage report to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
verbose: true
...