mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-09-27 00:54:46 +08:00
40 lines
743 B
YAML
40 lines
743 B
YAML
name: Twig Lint
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**.twig'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- '**.twig'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: lint-twig-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
twig-lint:
|
|
runs-on: ubuntu-latest
|
|
name: twig-lint
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up php ${{ matrix.php-versions }}
|
|
uses: shivammathur/setup-php@a4e22b60bbb9c1021113f2860347b0759f66fe5d # v2
|
|
with:
|
|
php-version: 8.3
|
|
extensions: apcu
|
|
coverage: none
|
|
|
|
- name: twig lint
|
|
run: |
|
|
cd php
|
|
composer install
|
|
composer run lint:twig
|