run tests with Twig 4 #241
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
name: "static analysis" | |
on: ["pull_request", "push"] | |
jobs: | |
unit-tests: | |
name: "static analysis" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "checkout" | |
uses: "actions/checkout@v4" | |
- name: "installing PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "8.3" | |
ini-values: memory_limit=-1 | |
tools: composer:v2, phpstan, cs2pr | |
- name: "installing dependencies" | |
run: "composer update --no-interaction --no-progress --no-suggest" | |
- name: "installing PHPUnit" | |
run: "php vendor/bin/simple-phpunit install" | |
- name: "running static analysis (PHPStan)" | |
run: "phpstan analyse" |