Skip to content

Revert "Parse the page context using a Twig extension instead of a parse step" #49

Revert "Parse the page context using a Twig extension instead of a parse step"

Revert "Parse the page context using a Twig extension instead of a parse step" #49

Workflow file for this run

name: Test & static analysis
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
phpstan:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.2"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
- name: "Run a static analysis with phpstan/phpstan"
run: "vendor/bin/phpstan analyse"
phpcs:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.2"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
- name: "Run phpcs"
run: "vendor/bin/phpcs"
phpunit:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.2"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
- name: Install image optimizers
run: sudo apt install jpegoptim optipng -y
- name: "Run phpunit"
run: "vendor/bin/phpunit"