Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit e37ccba

Browse files
Add linter actions
1 parent 3176db3 commit e37ccba

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/super-linter.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# It checks the syntax of the PHP code (using PHP-CS-Fixer)
2+
name: "Linter: Code Syntax"
3+
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
jobs:
10+
php-cs-fixer:
11+
name: PHP-CS-Fixer
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
# see https://github.com/OskarStark/php-cs-fixer-ga
16+
- name: PHP-CS-Fixer
17+
uses: docker://oskarstark/php-cs-fixer-ga
18+
with:
19+
args: --diff --dry-run

0 commit comments

Comments
 (0)