DevKit updates for 4.x branch #3447
Workflow file for this run
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: | |
- 4.x | |
- 5.x | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
php-cs-fixer: | |
name: PHP-CS-Fixer | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
coverage: none | |
tools: composer:v2 | |
extensions: mongodb, gd | |
- name: Install Composer dependencies (highest) | |
uses: ramsey/composer-install@v2 | |
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@v3 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
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@v3 | |
- 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@v3 | |
- 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 |