Skip to content

Commit b5f92c1

Browse files
committed
Add PHP-CS-Fixer to Build
1 parent c52a68a commit b5f92c1

File tree

2 files changed

+14
-30
lines changed

2 files changed

+14
-30
lines changed

.github/workflows/Build.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,22 @@ jobs:
127127
- name: Eslint
128128
run: npm run lint
129129

130+
PHP-CS-Fixer:
131+
runs-on: ubuntu-latest
132+
name: PHP-CS-Fixer
133+
134+
steps:
135+
- uses: actions/checkout@v4
136+
137+
- name: PHP-CS-Fixer
138+
uses: docker://oskarstark/php-cs-fixer-ga
139+
with:
140+
args: --diff --dry-run
141+
130142
Deploy:
131143
name: Deploy code to prod
132144
runs-on: ubuntu-latest
133-
needs: [PHPUnit, PHPStan, Vite, Prettier]
145+
needs: [PHPUnit, PHPStan, Vite, Prettier, PHP-CS-Fixer]
134146

135147
steps:
136148
- name: Checkout

.vscode/tasks.json

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -63,35 +63,7 @@
6363
"label": "Frontend - Coverage",
6464
"type": "shell",
6565
"command": "npm run coverage"
66-
},
67-
{
68-
"label": "Frontend - webpack:dev",
69-
"type": "shell",
70-
"command": "npm run webpack:dev",
71-
"problemMatcher": []
72-
},
73-
{
74-
"label": "Frontend - webpack:server (HMR)",
75-
"type": "shell",
76-
"command": "npm run webpack:server",
77-
"problemMatcher": [],
78-
"isBackground": true
79-
},
80-
{
81-
"label": "Frontend - webpack:watch",
82-
"type": "shell",
83-
"options": {},
84-
"command": "npm run webpack:watch",
85-
"problemMatcher": [],
86-
"isBackground": true
87-
},
88-
{
89-
"label": "Frontend - webpack:build",
90-
"type": "shell",
91-
"options": {},
92-
"command": "npm run webpack:build",
93-
"problemMatcher": []
94-
},
66+
}
9567

9668
/**
9769
* PHP Tasks

0 commit comments

Comments
 (0)