Skip to content

Commit 2ced807

Browse files
committed
Fix coding standard test + use default Nette CS test
1 parent 8a53038 commit 2ced807

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

.github/workflows/coding-style.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Coding Style
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
nette_cc:
7+
name: Nette Code Checker
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: shivammathur/setup-php@v2
12+
with:
13+
php-version: 7.4
14+
coverage: none
15+
16+
- run: composer create-project nette/code-checker temp/code-checker ^3 --no-progress
17+
- run: php temp/code-checker/code-checker --strict-types --no-progress
18+
19+
nette_cs:
20+
name: Nette Coding Standard
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: 8.0
27+
coverage: none
28+
29+
- run: composer create-project nette/coding-standard temp/coding-standard ^3 --no-progress --ignore-platform-reqs
30+
- run: php temp/coding-standard/ecs check src

.github/workflows/main.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,5 @@ jobs:
3232
- name: The PHP Security Checker
3333
uses: symfonycorp/security-checker-action@v2
3434

35-
- name: Check coding standards
36-
run: |
37-
php temp/code-checker/code-checker --short-arrays --strict-types --fix --no-progress
38-
php temp/coding-standard/ecs check src --config temp/coding-standard/coding-standard-php71.yml
39-
4035
- name: Check PHPStan rules
4136
run: composer phpstan

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"phpstan/phpstan": "^0.12.52",
1616
"tracy/tracy": "^2.8",
1717
"phpstan/phpstan-nette": "^0.12.9",
18-
"symplify/easy-coding-standard": "^7.2",
1918
"spaze/phpstan-disallowed-calls": "^1.1"
2019
},
2120
"autoload": {

0 commit comments

Comments
 (0)