Skip to content

Commit d6af697

Browse files
committed
Add sniffs workflow
1 parent 7d5aae1 commit d6af697

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

.github/workflows/sniffs.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Sniffs"
2+
3+
on: # yamllint disable-line rule:truthy
4+
pull_request: null
5+
push:
6+
branches:
7+
- "master"
8+
9+
jobs:
10+
phpcs-sniffs:
11+
name: "Display PHPCS rules"
12+
runs-on: "ubuntu-24.04"
13+
steps:
14+
-
15+
name: "Check out repository"
16+
uses: "actions/checkout@v4"
17+
-
18+
name: "Set up PHP"
19+
uses: "shivammathur/setup-php@v2"
20+
with:
21+
php-version: "8.0"
22+
-
23+
name: "Install dependencies"
24+
uses: "ramsey/composer-install@v3"
25+
with:
26+
dependency-versions: "highest"
27+
composer-options: "--no-plugins --no-scripts"
28+
-
29+
name: "List included rules"
30+
run: |
31+
vendor/bin/phpcs -e --standard=PSR12NeutronRuleset

.github/workflows/spelling.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on: # yamllint disable-line rule:truthy
99
jobs:
1010
typos:
1111
name: "Typos"
12-
runs-on: "ubuntu-22.04"
12+
runs-on: "ubuntu-24.04"
1313
steps:
1414
-
1515
name: "Check out repository"

.github/workflows/xml-validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on: # yamllint disable-line rule:truthy
99
jobs:
1010
phpcs-validate:
1111
name: "Validate PHPCS ruleset"
12-
runs-on: "ubuntu-22.04"
12+
runs-on: "ubuntu-24.04"
1313
steps:
1414
-
1515
name: "Check out repository"

0 commit comments

Comments
 (0)