File tree Expand file tree Collapse file tree 3 files changed +103
-20
lines changed Expand file tree Collapse file tree 3 files changed +103
-20
lines changed Original file line number Diff line number Diff line change 1+ name : " Check Coding Standards"
2+
3+ on :
4+ pull_request :
5+ push :
6+
7+ jobs :
8+ coding-standards :
9+ name : " Check Coding Standards"
10+
11+ runs-on : ${{ matrix.operating-system }}
12+
13+ strategy :
14+ matrix :
15+ php-version :
16+ - " 7.4"
17+ operating-system :
18+ - " ubuntu-latest"
19+
20+ steps :
21+ - name : " Checkout"
22+ uses : " actions/checkout@v2"
23+
24+ - name : " Install PHP"
25+ uses : " shivammathur/setup-php@v2"
26+ with :
27+ coverage : " pcov"
28+ php-version : " ${{ matrix.php-version }}"
29+ ini-values : memory_limit=-1
30+ tools : composer:v2, cs2pr
31+
32+ - name : " Cache dependencies"
33+ uses : " actions/cache@v2"
34+ with :
35+ path : |
36+ ~/.composer/cache
37+ vendor
38+ key : " php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
39+ restore-keys : " php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
40+
41+ - name : " Install dependencies"
42+ run : " composer update --no-interaction --no-progress --no-suggest"
43+
44+ - name : " Coding Standard"
45+ run : " vendor/bin/phpcs -q --report=checkstyle | cs2pr"
Original file line number Diff line number Diff line change 1+ name : " PHPUnit tests"
2+
3+ on :
4+ pull_request :
5+ push :
6+
7+ jobs :
8+ phpunit :
9+ name : " PHPUnit tests"
10+
11+ runs-on : ${{ matrix.operating-system }}
12+
13+ strategy :
14+ matrix :
15+ dependencies :
16+ - " lowest"
17+ - " highest"
18+ php-version :
19+ - " 7.2"
20+ - " 7.3"
21+ - " 7.4"
22+ - " 8.0"
23+ operating-system :
24+ - " ubuntu-latest"
25+
26+ steps :
27+ - name : " Checkout"
28+ uses : " actions/checkout@v2"
29+ with :
30+ fetch-depth : 0
31+
32+ - name : " Install PHP"
33+ uses : " shivammathur/setup-php@v2"
34+ with :
35+ coverage : " pcov"
36+ php-version : " ${{ matrix.php-version }}"
37+ ini-values : memory_limit=-1
38+ tools : composer:v2, cs2pr
39+
40+ - name : " Cache dependencies"
41+ uses : " actions/cache@v2"
42+ with :
43+ path : |
44+ ~/.composer/cache
45+ vendor
46+ key : " php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
47+ restore-keys : " php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
48+
49+ - name : " Install lowest dependencies"
50+ if : ${{ matrix.dependencies == 'lowest' }}
51+ run : " composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
52+
53+ - name : " Install highest dependencies"
54+ if : ${{ matrix.dependencies == 'highest' }}
55+ run : " composer update --no-interaction --no-progress --no-suggest"
56+
57+ - name : " Tests"
58+ run : " vendor/bin/phpunit"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments