File tree 2 files changed +46
-6
lines changed
2 files changed +46
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : " Coding Standards"
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - " *.x"
7
+ - " master"
8
+ push :
9
+ branches :
10
+ - " *.x"
11
+ - " master"
12
+
13
+ jobs :
14
+ coding-standards :
15
+ name : " Coding Standards"
16
+ runs-on : " ubuntu-20.04"
17
+
18
+ strategy :
19
+ matrix :
20
+ php-version :
21
+ - " 7.4"
22
+
23
+ steps :
24
+ - name : " Checkout"
25
+ uses : " actions/checkout@v2"
26
+
27
+ - name : " Install PHP"
28
+ uses : " shivammathur/setup-php@v2"
29
+ with :
30
+ coverage : " none"
31
+ php-version : " ${{ matrix.php-version }}"
32
+ tools : " cs2pr"
33
+
34
+ - name : " Cache dependencies installed with Composer"
35
+ uses : " actions/cache@v2"
36
+ with :
37
+ path : " ~/.composer/cache"
38
+ key : " php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
39
+ restore-keys : " php-${{ matrix.php-version }}-composer-locked-"
40
+
41
+ - name : " Install dependencies with Composer"
42
+ run : " composer install --no-interaction --no-progress --no-suggest"
43
+
44
+ # https://github.com/doctrine/.github/issues/3
45
+ - name : " Run PHP_CodeSniffer"
46
+ run : " vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"
Original file line number Diff line number Diff line change 55
55
if : type = cron
56
56
env : DEV COMPOSER_FLAGS="-n --prefer-dist"
57
57
58
- - stage : Code Quality
59
- env : CODING_STANDARDS
60
- php : 7.2
61
- script :
62
- - ./vendor/bin/phpcs
63
-
64
58
- stage : Coverage
65
59
php : 7.3
66
60
env : COVERAGE PHPUNIT_FLAGS="--coverage-clover=coverage.clover" REQUIRE_SYMFONY_MESSENGER
You can’t perform that action at this time.
0 commit comments