Skip to content

WIP: Release/3.0.0

WIP: Release/3.0.0 #29

Workflow file for this run

# Do not edit this file! Make a pull request on changing
# github/workflows/twig.yaml in
# https://github.com/itk-dev/devops_itkdev-docker if need be.
### ### Twig
###
### Validates Twig files
###
### #### Assumptions
###
### 1. A docker compose service named `phpfpm` can be run and `composer` can be
### run inside the `phpfpm` service.
### 2. [vincentlanglet/twig-cs-fixer](https://github.com/VincentLanglet/Twig-CS-Fixer)
### is a dev requirement in `composer.json`:
###
### ``` shell
### docker compose run --rm phpfpm composer require --dev vincentlanglet/twig-cs-fixer
### ```
###
### 3. A [Configuration
### file](https://github.com/VincentLanglet/Twig-CS-Fixer/blob/main/docs/configuration.md#configuration-file)
### in the root of the project defines which files to check and rules to use.
name: Twig
env:
COMPOSE_USER: root
on:
pull_request:
push:
branches:
- main
- develop
jobs:
twig-lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- run: |
docker network create frontend
docker compose run --rm phpfpm composer install
docker compose run --rm phpfpm vendor/bin/twig-cs-fixer lint