Skip to content

Commit a53670f

Browse files
committed
fix php linter
1 parent 3cc255c commit a53670f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/lint.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,10 @@ on:
66
push:
77
branches:
88
- main
9-
# Replace pull_request with pull_request_target if you
10-
# plan to use this action with forks, see the Limitations section
119
pull_request:
1210
branches:
1311
- main
1412

15-
# Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
16-
permissions:
17-
checks: write
18-
contents: write
19-
2013
jobs:
2114
run-linters:
2215
name: Run linters
@@ -26,9 +19,16 @@ jobs:
2619
- name: Check out Git repository
2720
uses: actions/checkout@v2
2821

29-
# Install your linters here
22+
- name: Set up PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: "7.4"
26+
coverage: none
27+
tools: phpcs
3028

3129
- name: Run linters
3230
uses: wearerequired/lint-action@v2
3331
with:
34-
# Enable your linters here
32+
php_codesniffer: true
33+
# Optional: Ignore warnings
34+
php_codesniffer_args: "-n"

0 commit comments

Comments
 (0)