Lint #1935
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
# DO NOT EDIT THIS FILE! | |
# | |
# It's auto-generated by sonata-project/dev-kit package. | |
name: Lint | |
on: | |
schedule: | |
- cron: '30 0 * * *' | |
push: | |
branches: | |
- 3.x | |
- 4.x | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
php-cs-fixer: | |
name: PHP-CS-Fixer | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
coverage: none | |
tools: composer:v2 | |
- name: Install Composer dependencies (highest) | |
uses: ramsey/composer-install@v3 | |
with: | |
dependency-versions: highest | |
- name: Lint PHP files | |
run: make lint-php | |
composer: | |
name: Composer | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
coverage: none | |
tools: composer:v2, composer-normalize:2 | |
env: | |
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Lint Composer | |
run: make lint-composer | |
yaml-files: | |
name: YAML files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install yamllint | |
run: sudo apt-get install yamllint | |
- name: Lint files | |
run: make lint-yaml | |
xml-files: | |
name: XML files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install required dependencies | |
run: sudo apt-get update && sudo apt-get install libxml2-utils | |
- name: Lint xml files | |
run: make lint-xml | |
- name: Lint xliff files | |
run: make lint-xliff |