File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ on :
2+ - push
3+
4+ name : Run phpcs checks
5+
6+ jobs :
7+ mutation :
8+ name : PHP ${{ matrix.php }}-${{ matrix.os }}
9+
10+ runs-on : ${{ matrix.os }}
11+
12+ strategy :
13+ matrix :
14+ os :
15+ - ubuntu-latest
16+
17+ php :
18+ - " 8.1"
19+ - " 8.2"
20+
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v3
24+
25+ - name : Install PHP
26+ uses : shivammathur/setup-php@v2
27+ with :
28+ php-version : " ${{ matrix.php }}"
29+ tools : composer:v2, cs2pr
30+ coverage : none
31+
32+ - name : Determine composer cache directory
33+ run : echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
34+
35+ - name : Cache dependencies installed with composer
36+ uses : actions/cache@v3
37+ with :
38+ path : ${{ env.COMPOSER_CACHE_DIR }}
39+ key : php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
40+ restore-keys : |
41+ php${{ matrix.php }}-composer-
42+ - name : Install dependencies with composer
43+ run : composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
44+
45+ - name : Run phpcs checks
46+ run : vendor/bin/phpcs
Original file line number Diff line number Diff line change 1+ on :
2+ - push
3+
4+ name : Run static analysis
5+
6+ jobs :
7+ mutation :
8+ name : PHP ${{ matrix.php }}-${{ matrix.os }}
9+
10+ runs-on : ${{ matrix.os }}
11+
12+ strategy :
13+ matrix :
14+ os :
15+ - ubuntu-latest
16+
17+ php :
18+ - " 8.1"
19+ - " 8.2"
20+
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v3
24+
25+ - name : Install PHP
26+ uses : shivammathur/setup-php@v2
27+ with :
28+ php-version : " ${{ matrix.php }}"
29+ tools : composer:v2, cs2pr
30+ coverage : none
31+
32+ - name : Determine composer cache directory
33+ run : echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
34+
35+ - name : Cache dependencies installed with composer
36+ uses : actions/cache@v3
37+ with :
38+ path : ${{ env.COMPOSER_CACHE_DIR }}
39+ key : php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
40+ restore-keys : |
41+ php${{ matrix.php }}-composer-
42+ - name : Install dependencies with composer
43+ run : composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
44+
45+ - name : Run static analysis
46+ run : vendor/bin/psalm --no-cache --output-format=github --show-info=false --threads=4
Original file line number Diff line number Diff line change 1+ on :
2+ - push
3+
4+ name : Run PHPUnit tests
5+
6+ jobs :
7+ mutation :
8+ name : PHP ${{ matrix.php }}-${{ matrix.os }}
9+
10+ runs-on : ${{ matrix.os }}
11+
12+ strategy :
13+ matrix :
14+ os :
15+ - ubuntu-latest
16+
17+ php :
18+ - " 8.1"
19+ - " 8.2"
20+
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v3
24+
25+ - name : Install PHP
26+ uses : shivammathur/setup-php@v2
27+ with :
28+ php-version : " ${{ matrix.php }}"
29+ tools : composer:v2, cs2pr
30+ coverage : none
31+
32+ - name : Determine composer cache directory
33+ run : echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
34+
35+ - name : Cache dependencies installed with composer
36+ uses : actions/cache@v3
37+ with :
38+ path : ${{ env.COMPOSER_CACHE_DIR }}
39+ key : php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
40+ restore-keys : |
41+ php${{ matrix.php }}-composer-
42+
43+ - name : Install dependencies with composer
44+ run : composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
45+
46+ - name : Run PHPUnit tests
47+ run : vendor/bin/phpunit --colors=always
Original file line number Diff line number Diff line change 1- osslifecycle=active
1+ osslifecycle=active
You can’t perform that action at this time.
0 commit comments