File tree Expand file tree Collapse file tree 4 files changed +110
-34
lines changed
Expand file tree Collapse file tree 4 files changed +110
-34
lines changed Original file line number Diff line number Diff line change 1+ name : " coding style"
2+
3+ on : ["pull_request", "push"]
4+
5+ jobs :
6+ unit-tests :
7+ name : " coding style"
8+
9+ runs-on : " ubuntu-latest"
10+
11+ steps :
12+ - name : " checkout"
13+ uses : " actions/checkout@v2"
14+
15+ - name : " installing PHP"
16+ uses : " shivammathur/setup-php@v2"
17+ with :
18+ php-version : " 8.0"
19+
20+ - name : " installing php-cs-fixer"
21+ run : " wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v3.0.0/php-cs-fixer.phar"
22+
23+ - name : " running php-cs-fixer"
24+ run : " php php-cs-fixer.phar fix --dry-run --diff --no-ansi"
Original file line number Diff line number Diff line change 1+ name : " static analysis"
2+
3+ on : ["pull_request", "push"]
4+
5+ jobs :
6+ unit-tests :
7+ name : " static analysis"
8+
9+ runs-on : " ubuntu-latest"
10+
11+ steps :
12+ - name : " checkout"
13+ uses : " actions/checkout@v2"
14+
15+ - name : " installing PHP"
16+ uses : " shivammathur/setup-php@v2"
17+ with :
18+ php-version : " 8.0"
19+ ini-values : memory_limit=-1
20+ tools : composer:v2, phpstan, cs2pr
21+
22+ - name : " installing dependencies"
23+ run : " composer update --no-interaction --no-progress --no-suggest"
24+
25+ - name : " installing phpunit"
26+ run : " php vendor/bin/simple-phpunit install"
27+
28+ - name : " running static analysis ( phpstan )"
29+ run : " phpstan analyse"
Original file line number Diff line number Diff line change 1+ name : " unit tests"
2+
3+ on : ["pull_request", "push"]
4+
5+ jobs :
6+ unit-tests :
7+ name : " unit tests"
8+
9+ runs-on : ${{ matrix.operating-system }}
10+
11+ strategy :
12+ matrix :
13+ dependencies :
14+ - " lowest"
15+ - " highest"
16+ php-version :
17+ - " 7.1"
18+ - " 7.2"
19+ - " 7.3"
20+ - " 7.4"
21+ - " 8.0"
22+ operating-system :
23+ - " ubuntu-latest"
24+
25+ steps :
26+ - name : " checkout"
27+ uses : " actions/checkout@v2"
28+
29+ - name : " installing PHP"
30+ uses : " shivammathur/setup-php@v2"
31+ with :
32+ php-version : " ${{ matrix.php-version }}"
33+ ini-values : memory_limit=-1
34+ tools : composer:v2, cs2pr
35+
36+ - name : " caching dependencies"
37+ uses : " actions/cache@v2"
38+ with :
39+ path : |
40+ ~/.composer/cache
41+ vendor
42+ key : " php-${{ matrix.php-version }}-${{ matrix.operating-system }}"
43+ restore-keys : " php-${{ matrix.php-version }}-${{ matrix.operating-system }}"
44+
45+ - name : " installing lowest dependencies"
46+ if : ${{ matrix.dependencies == 'lowest' }}
47+ run : " composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
48+
49+ - name : " installing highest dependencies"
50+ if : ${{ matrix.dependencies == 'highest' }}
51+ run : " composer update --no-interaction --no-progress --no-suggest"
52+
53+ - name : " installing phpunit"
54+ run : " php vendor/bin/simple-phpunit install"
55+
56+ - name : " running unit tests"
57+ run : " php vendor/bin/simple-phpunit"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments