-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 851 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
on: [push]
name: lint
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none
- name: Install composer dependencies
uses: ramsey/composer-install@v1
- name: Easy Coding Standard Action
run: ./vendor/bin/ecs check --fix
- name: PHP-CS-Fixer Action
run: ./vendor/bin/php-cs-fixer fix
- name: Rector Action
run: ./vendor/bin/rector process
- name: TLint Action
run: ./vendor/bin/tlint lint
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Lint files