Skip to content

Commit a95ced2

Browse files
committed
put it back
1 parent 145ec27 commit a95ced2

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

.github/workflows/lint.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
# name: Lint
1+
name: Lint
22

3-
# on:
4-
# # Trigger the workflow on push or pull request,
5-
# # but only for the main branch
6-
# push:
7-
# branches:
8-
# - 'main'
9-
# # Replace pull_request with pull_request_target if you
10-
# # plan to use this action with forks, see the Limitations section
11-
# pull_request_target:
12-
# branches:
13-
# - 'main'
3+
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the main branch
6+
push:
7+
branches:
8+
- 'main'
9+
# Replace pull_request with pull_request_target if you
10+
# plan to use this action with forks, see the Limitations section
11+
pull_request_target:
12+
branches:
13+
- 'main'
1414

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
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
1919

20-
# jobs:
21-
# run-linters:
22-
# name: Run linters
23-
# runs-on: ubuntu-latest
20+
jobs:
21+
run-linters:
22+
name: Run linters
23+
runs-on: ubuntu-latest
2424

25-
# steps:
26-
# - name: Check out Git repository
27-
# uses: actions/checkout@v2
25+
steps:
26+
- name: Check out Git repository
27+
uses: actions/checkout@v2
2828

29-
# - name: Set up PHP
30-
# uses: shivammathur/setup-php@v2
31-
# with:
32-
# php-version: "7.4"
33-
# coverage: none
34-
# tools: phpcs
29+
- name: Set up PHP
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: "7.4"
33+
coverage: none
34+
tools: phpcs
3535

36-
# - name: Run linters
37-
# uses: wearerequired/lint-action@v2
38-
# with:
39-
# php_codesniffer: true
40-
# php_codesniffer_args: "--standard=psr12 --ignore=test/*"
36+
- name: Run linters
37+
uses: wearerequired/lint-action@v2
38+
with:
39+
php_codesniffer: true
40+
php_codesniffer_args: "--standard=psr12 --ignore=test/*"

0 commit comments

Comments
 (0)