-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (34 loc) · 974 Bytes
/
format.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Formatting
on:
pull_request:
branches:
- main
types: [ opened, reopened, ready_for_review ]
jobs:
test:
runs-on: ubuntu-22.04
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: zip, sqlite3
coverage: none
- name: Install node dependencies
run: npm ci
- name: Install composer dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Code Formatting
run: |
echo "running prettier..."
npm run prettier
echo "running php-cs fixer..."
vendor/bin/php-cs-fixer fix
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply Code Style Fixes