Skip to content

Commit 804644f

Browse files
committed
[CI] Add code_analysis and validate composer
1 parent 851e16f commit 804644f

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflow/code_analysis.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Code Analysis
2+
3+
on:
4+
pull_request: null
5+
6+
jobs:
7+
code_analysis:
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
actions:
12+
-
13+
name: 'Validate'
14+
# this is very slow, so it has to be in own workflow
15+
run: composer validate --strict
16+
17+
name: ${{ matrix.actions.name }}
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
# see https://github.com/shivammathur/setup-php
24+
-
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: 7.3
28+
coverage: none
29+
30+
- uses: "ramsey/composer-install@v1"
31+
32+
- run: ${{ matrix.actions.run }}

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"name": "rector/php-parser-nodes-docs",
3+
"license": "MIT",
4+
"description": "Generate visual docs for php-parser nodes - the first step to master AST",
35
"require": {
46
"php": "^8.0",
57
"symfony/console": "^5.2",

0 commit comments

Comments
 (0)