Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Commit 673d331

Browse files
authored
Merge pull request #43 from patchlevel/update-workflows
update workflows
2 parents 523cc8b + 8fdae5a commit 673d331

File tree

6 files changed

+215
-270
lines changed

6 files changed

+215
-270
lines changed

.github/workflows/coding-standard.yml

Lines changed: 36 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,59 +3,41 @@
33
name: "Check Coding Standard"
44

55
on:
6-
pull_request:
7-
branches:
8-
- "master"
9-
push:
10-
branches:
11-
- "master"
6+
pull_request:
7+
push:
8+
branches:
9+
- "[0-9]+.[0-9]+.x"
10+
- "renovate/*"
1211

1312
jobs:
14-
static-analysis-coding-standard:
15-
name: "Static Analysis by patchlevel/coding-standard"
16-
17-
runs-on: ${{ matrix.operating-system }}
18-
19-
strategy:
20-
matrix:
21-
dependencies:
22-
- "locked"
23-
php-version:
24-
- "7.4"
25-
operating-system:
26-
- "ubuntu-latest"
27-
28-
steps:
29-
- name: "Checkout"
30-
uses: actions/checkout@v3
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-
39-
- name: "Cache dependencies"
40-
uses: actions/cache@v3
41-
with:
42-
path: |
43-
~/.composer/cache
44-
vendor
45-
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
46-
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
47-
48-
- name: "Install lowest dependencies"
49-
if: ${{ matrix.dependencies == 'lowest' }}
50-
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
51-
52-
- name: "Install highest dependencies"
53-
if: ${{ matrix.dependencies == 'highest' }}
54-
run: "composer update --no-interaction --no-progress --no-suggest"
55-
56-
- name: "Install locked dependencies"
57-
if: ${{ matrix.dependencies == 'locked' }}
58-
run: "composer install --no-interaction --no-progress --no-suggest"
59-
60-
- name: "Coding Standard"
61-
run: "vendor/bin/phpcs"
13+
static-analysis-coding-standard:
14+
name: "Static Analysis by patchlevel/coding-standard"
15+
16+
runs-on: ${{ matrix.operating-system }}
17+
18+
strategy:
19+
matrix:
20+
dependencies:
21+
- "locked"
22+
php-version:
23+
- "7.4"
24+
operating-system:
25+
- "ubuntu-latest"
26+
27+
steps:
28+
- name: "Checkout"
29+
uses: actions/checkout@v3
30+
31+
- name: "Install PHP"
32+
uses: "shivammathur/setup-php@v2"
33+
with:
34+
coverage: "pcov"
35+
php-version: "${{ matrix.php-version }}"
36+
ini-values: memory_limit=-1
37+
38+
- uses: ramsey/composer-install@2.1.0
39+
with:
40+
dependency-versions: ${{ matrix.dependencies }}
41+
42+
- name: "Coding Standard"
43+
run: "vendor/bin/phpcs"

.github/workflows/mutation-tests.yml

Lines changed: 38 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,59 +3,43 @@
33
name: "Mutation tests"
44

55
on:
6-
pull_request:
7-
push:
8-
branches:
9-
- "master"
6+
pull_request:
7+
push:
8+
branches:
9+
- "[0-9]+.[0-9]+.x"
10+
- "renovate/*"
1011

1112
jobs:
12-
mutation-tests:
13-
name: "Mutation tests"
14-
15-
runs-on: ${{ matrix.operating-system }}
16-
17-
strategy:
18-
matrix:
19-
dependencies:
20-
- "locked"
21-
php-version:
22-
- "7.4"
23-
operating-system:
24-
- "ubuntu-latest"
25-
26-
steps:
27-
- name: "Checkout"
28-
uses: actions/checkout@v3
29-
30-
- name: "Install PHP"
31-
uses: "shivammathur/setup-php@v2"
32-
with:
33-
coverage: "pcov"
34-
php-version: "${{ matrix.php-version }}"
35-
ini-values: memory_limit=-1
36-
37-
- name: "Cache dependencies"
38-
uses: actions/cache@v3
39-
with:
40-
path: |
41-
~/.composer/cache
42-
vendor
43-
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
44-
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
45-
46-
- name: "Install lowest dependencies"
47-
if: ${{ matrix.dependencies == 'lowest' }}
48-
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
49-
50-
- name: "Install highest dependencies"
51-
if: ${{ matrix.dependencies == 'highest' }}
52-
run: "composer update --no-interaction --no-progress --no-suggest"
53-
54-
- name: "Install locked dependencies"
55-
if: ${{ matrix.dependencies == 'locked' }}
56-
run: "composer install --no-interaction --no-progress --no-suggest"
57-
58-
- name: "Infection"
59-
run: "vendor/bin/infection"
60-
env:
61-
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
13+
mutation-tests:
14+
name: "Mutation tests"
15+
16+
runs-on: ${{ matrix.operating-system }}
17+
18+
strategy:
19+
matrix:
20+
dependencies:
21+
- "locked"
22+
php-version:
23+
- "7.4"
24+
operating-system:
25+
- "ubuntu-latest"
26+
27+
steps:
28+
- name: "Checkout"
29+
uses: actions/checkout@v3
30+
31+
- name: "Install PHP"
32+
uses: "shivammathur/setup-php@v2"
33+
with:
34+
coverage: "pcov"
35+
php-version: "${{ matrix.php-version }}"
36+
ini-values: memory_limit=-1
37+
38+
- uses: ramsey/composer-install@2.1.0
39+
with:
40+
dependency-versions: ${{ matrix.dependencies }}
41+
42+
- name: "Infection"
43+
run: "vendor/bin/infection"
44+
env:
45+
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

.github/workflows/phpstan.yml

Lines changed: 36 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,57 +3,41 @@
33
name: "Static Analysis by PHPStan"
44

55
on:
6-
pull_request:
7-
push:
8-
branches:
9-
- "master"
6+
pull_request:
7+
push:
8+
branches:
9+
- "[0-9]+.[0-9]+.x"
10+
- "renovate/*"
1011

1112
jobs:
12-
static-analysis-phpstan:
13-
name: "Static Analysis by PHPStan"
14-
15-
runs-on: ${{ matrix.operating-system }}
16-
17-
strategy:
18-
matrix:
19-
dependencies:
20-
- "locked"
21-
php-version:
22-
- "7.4"
23-
operating-system:
24-
- "ubuntu-latest"
25-
26-
steps:
27-
- name: "Checkout"
28-
uses: actions/checkout@v3
29-
30-
- name: "Install PHP"
31-
uses: "shivammathur/setup-php@v2"
32-
with:
33-
coverage: "pcov"
34-
php-version: "${{ matrix.php-version }}"
35-
ini-values: memory_limit=-1
36-
37-
- name: "Cache dependencies"
38-
uses: actions/cache@v3
39-
with:
40-
path: |
41-
~/.composer/cache
42-
vendor
43-
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
44-
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
45-
46-
- name: "Install lowest dependencies"
47-
if: ${{ matrix.dependencies == 'lowest' }}
48-
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
49-
50-
- name: "Install highest dependencies"
51-
if: ${{ matrix.dependencies == 'highest' }}
52-
run: "composer update --no-interaction --no-progress --no-suggest"
53-
54-
- name: "Install locked dependencies"
55-
if: ${{ matrix.dependencies == 'locked' }}
56-
run: "composer install --no-interaction --no-progress --no-suggest"
57-
58-
- name: "PHPStan"
59-
run: "vendor/bin/phpstan analyse"
13+
static-analysis-phpstan:
14+
name: "Static Analysis by PHPStan"
15+
16+
runs-on: ${{ matrix.operating-system }}
17+
18+
strategy:
19+
matrix:
20+
dependencies:
21+
- "locked"
22+
php-version:
23+
- "7.4"
24+
operating-system:
25+
- "ubuntu-latest"
26+
27+
steps:
28+
- name: "Checkout"
29+
uses: actions/checkout@v3
30+
31+
- name: "Install PHP"
32+
uses: "shivammathur/setup-php@v2"
33+
with:
34+
coverage: "pcov"
35+
php-version: "${{ matrix.php-version }}"
36+
ini-values: memory_limit=-1
37+
38+
- uses: ramsey/composer-install@2.1.0
39+
with:
40+
dependency-versions: ${{ matrix.dependencies }}
41+
42+
- name: "PHPStan"
43+
run: "vendor/bin/phpstan analyse"

.github/workflows/phpunit.yml

Lines changed: 45 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -3,61 +3,50 @@
33
name: "PHPUnit tests"
44

55
on:
6-
pull_request:
7-
push:
8-
branches:
9-
- "master"
6+
pull_request:
7+
push:
8+
branches:
9+
- "[0-9]+.[0-9]+.x"
10+
- "renovate/*"
1011

1112
jobs:
12-
phpunit:
13-
name: "PHPUnit tests"
14-
15-
runs-on: ${{ matrix.operating-system }}
16-
17-
strategy:
18-
matrix:
19-
dependencies:
20-
- "lowest"
21-
- "highest"
22-
- "locked"
23-
php-version:
24-
- "7.4"
25-
- "8.0"
26-
operating-system:
27-
- "ubuntu-latest"
28-
- "windows-latest"
29-
30-
steps:
31-
- name: "Checkout"
32-
uses: actions/checkout@v3
33-
34-
- name: "Install PHP"
35-
uses: "shivammathur/setup-php@v2"
36-
with:
37-
coverage: "pcov"
38-
php-version: "${{ matrix.php-version }}"
39-
ini-values: memory_limit=-1
40-
41-
- name: "Cache dependencies"
42-
uses: actions/cache@v3
43-
with:
44-
path: |
45-
~/.composer/cache
46-
vendor
47-
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
48-
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
49-
50-
- name: "Install lowest dependencies"
51-
if: ${{ matrix.dependencies == 'lowest' }}
52-
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
53-
54-
- name: "Install highest dependencies"
55-
if: ${{ matrix.dependencies == 'highest' }}
56-
run: "composer update --no-interaction --no-progress --no-suggest"
57-
58-
- name: "Install locked dependencies"
59-
if: ${{ matrix.dependencies == 'locked' }}
60-
run: "composer install --no-interaction --no-progress --no-suggest"
61-
62-
- name: "Tests"
63-
run: "vendor/bin/phpunit --coverage-clover=clover.xml --coverage-text"
13+
phpunit:
14+
name: "PHPUnit tests"
15+
16+
runs-on: ${{ matrix.operating-system }}
17+
18+
strategy:
19+
matrix:
20+
dependencies:
21+
- "lowest"
22+
- "highest"
23+
php-version:
24+
- "7.4"
25+
- "8.0"
26+
operating-system:
27+
- "ubuntu-latest"
28+
- "windows-latest"
29+
include:
30+
- dependencies: "locked"
31+
php-version: "8.0"
32+
operating-system: "ubuntu-latest"
33+
- dependencies: "locked"
34+
php-version: "8.0"
35+
operating-system: "windows-latest"
36+
steps:
37+
- name: "Checkout"
38+
uses: actions/checkout@v3
39+
40+
- name: "Install PHP"
41+
uses: "shivammathur/setup-php@v2"
42+
with:
43+
coverage: "pcov"
44+
php-version: "${{ matrix.php-version }}"
45+
ini-values: memory_limit=-1
46+
47+
- uses: ramsey/composer-install@2.1.0
48+
with:
49+
dependency-versions: ${{ matrix.dependencies }}
50+
51+
- name: "Tests"
52+
run: "vendor/bin/phpunit --coverage-clover=clover.xml --coverage-text"

0 commit comments

Comments
 (0)