Update dependency rector/rector to ^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.0 #570
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
--- | |
name: Tests and Code Analysis | |
on: # yamllint disable-line rule:truthy | |
# Trigger the workflow on pushes to the main branch and all pull requests. | |
push: | |
branches: | |
- "[0-9].x" | |
pull_request: | |
jobs: | |
php-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
php: [8.1, 8.2, 8.3] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@2.28.0 | |
with: | |
php-version: ${{ matrix.php }} | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install Composer dependencies | |
uses: "ramsey/composer-install@v2" | |
- name: PHP coding standards | |
run: composer phpcs | |
- name: PHP static analysis | |
run: composer phpstan | |
- name: PHP rector | |
run: composer rector | |
- name: Test robo theme:build command. | |
run: composer robo theme:build | |
- name: Test robo config:update-php-version command. | |
run: composer robo config:update-php-version 8.2 | |
yaml-lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: YAML lint | |
uses: ibiqlik/action-yamllint@v3.1 | |
with: | |
config_file: .yamllint.yml |