-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (39 loc) · 1.02 KB
/
code-styling.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
46
47
name: 'Code Styling'
on:
push:
paths:
- '**.php'
- 'resources'
branches:
- main
pull_request:
paths:
- '**.php'
- 'resources'
jobs:
code-styling:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.2'
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install Composer
uses: php-actions/composer@v6
with:
php_extensions: intl zip sodium pcntl bcmath
php_version: '8.2'
args: --ignore-platform-reqs --optimize-autoloader --no-progress --prefer-dist --optimize-autoloader
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 21
- name: Install Dependencies
run: npm install
- name: Run Prettier
run: npm run prettier
- name: Run Pint
uses: aglipanci/[email protected]