Skip to content

Commit 660a55f

Browse files
authored
ci: setup autofix (#1679)
1 parent 8e8d0d5 commit 660a55f

File tree

2 files changed

+34
-76
lines changed

2 files changed

+34
-76
lines changed

.github/workflows/autofix.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: autofix.ci # needed to securely identify the workflow by the action
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
autofix:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: shivammathur/setup-php@v2
18+
with:
19+
coverage: none
20+
extensions: mbstring
21+
php-version: 8.3
22+
23+
- uses: ramsey/composer-install@v2
24+
25+
- run: composer normalize
26+
27+
- run: composer docs
28+
- run: npx prettier --write --tab-width=2 *.md **/*.md
29+
30+
- run: vendor/bin/php-cs-fixer fix
31+
32+
- uses: autofix-ci/action@v1
33+
with:
34+
commit-message: Autofix

.github/workflows/autoformat.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)