Skip to content

Commit 612031c

Browse files
authored
Merge pull request #1 from webmasterskaya/test-workflows
Настроен статический анализ кода
2 parents 9b45519 + da3f3bf commit 612031c

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: "Static analysis code"
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches:
6+
- master
7+
pull_request:
68

79
env:
810
COMPOSER_FLAGS: "--ansi --prefer-dist --no-interaction --no-progress"
@@ -24,7 +26,7 @@ jobs:
2426

2527
steps:
2628
- name: "Checkout"
27-
uses: "actions/checkout@v2"
29+
uses: "actions/checkout@v3"
2830

2931
- name: "Install PHP"
3032
uses: "shivammathur/setup-php@v2"
@@ -49,13 +51,13 @@ jobs:
4951
- "7.4"
5052
steps:
5153
- name: "Cancel Previous Runs"
52-
uses: styfle/cancel-workflow-action@0.9.0
54+
uses: styfle/cancel-workflow-action@0.11.0
5355
with:
5456
all_but_latest: true
5557
access_token: ${{ github.token }}
5658

5759
- name: "Checkout"
58-
uses: "actions/checkout@v2"
60+
uses: "actions/checkout@v3"
5961

6062
- name: "Install PHP"
6163
uses: "shivammathur/setup-php@v2"
@@ -81,7 +83,7 @@ jobs:
8183
run: |
8284
composer install ${{ env.COMPOSER_FLAGS }}
8385
rm composer.lock
84-
composer config platform.php ${{ matrix.php }}
86+
composer config platform.php ${{ matrix.php-version }}
8587
8688
- name: Run phpstan
8789
run: composer phpstan

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
],
3131
"require": {
32-
"php": "=>7.2 <8.0",
32+
"php": ">=7.2 <8.0",
3333
"ext-mbstring": "*"
3434
},
3535
"require-dev": {

doc/GET-TEST-CERT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
-certusage "1.3.6.1.5.5.7.3.4,1.3.6.1.5.5.7.3.2,1.2.643.2.2.34.6" \
1111
-ku -cont '\\.\HDIMAGE\ContainerName' \
1212
-provtype 80 ./main.req
13-
```
13+
```

tmp/src.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
foo bar master

0 commit comments

Comments
 (0)