mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-11-16 03:56:02 +08:00
9c4917165e
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
42 lines
836 B
YAML
42 lines
836 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@v2
|
|
with:
|
|
php-version: 8.2
|
|
extensions: apcu
|
|
coverage: none
|
|
|
|
- name: twig lint
|
|
run: |
|
|
cd php
|
|
composer require sserbin/twig-linter:@dev --no-progress --dev
|
|
composer install
|
|
chmod +x ./vendor/bin/twig-linter
|
|
./vendor/bin/twig-linter lint ./templates
|