Skip to content

Commit 17415f6

Browse files
committed
First version
1 parent c234bd9 commit 17415f6

File tree

7 files changed

+538
-0
lines changed

7 files changed

+538
-0
lines changed

.github/renovate.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"extends": [
3+
"config:base",
4+
"schedule:weekly"
5+
],
6+
"rangeStrategy": "update-lockfile",
7+
"packageRules": [
8+
{
9+
"matchPaths": ["+(composer.json)"],
10+
"enabled": true,
11+
"groupName": "root-composer"
12+
},
13+
{
14+
"matchPaths": [".github/**"],
15+
"enabled": true,
16+
"groupName": "github-actions"
17+
}
18+
]
19+
}

.github/workflows/build.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Build"
4+
5+
on:
6+
pull_request:
7+
push:
8+
branches:
9+
- "main"
10+
11+
jobs:
12+
coding-standard:
13+
name: "Coding Standard"
14+
15+
runs-on: "ubuntu-latest"
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
extension-name:
21+
- "phpstan-doctrine"
22+
- "extension-installer"
23+
- "phpstan-phpunit"
24+
- "phpstan-mockery"
25+
- "phpstan-symfony"
26+
- "phpdoc-parser"
27+
- "phpstan-nette"
28+
- "phpstan-webmozart-assert"
29+
- "phpstan-beberlei-assert"
30+
- "phpstan-deprecation-rules"
31+
- "phpstan-dibi"
32+
- "phpstan-php-parser"
33+
- "phpstan-strict-rules"
34+
35+
steps:
36+
- name: "Checkout extension"
37+
uses: actions/checkout@v3
38+
with:
39+
repository: "phpstan/${{ matrix.extension-name }}"
40+
41+
- name: "Checkout build-cs"
42+
uses: actions/checkout@v3
43+
with:
44+
path: "build-cs"
45+
46+
- name: "Install PHP"
47+
uses: "shivammathur/setup-php@v2"
48+
with:
49+
coverage: "none"
50+
php-version: "8.2"
51+
52+
- name: "Install dependencies"
53+
working-directory: "build-cs"
54+
run: "composer install --no-interaction --no-progress"
55+
56+
- name: "Coding Standard"
57+
run: "make cs"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor

composer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"require-dev": {
3+
"consistence-community/coding-standard": "^3.11.0",
4+
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
5+
"slevomat/coding-standard": "^8.8.0",
6+
"squizlabs/php_codesniffer": "^3.5.3"
7+
},
8+
"config": {
9+
"allow-plugins": {
10+
"dealerdirect/phpcodesniffer-composer-installer": true
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)