Skip to content

Commit f17f4a2

Browse files
authored
Update workflows (#389)
1 parent 06c8a63 commit f17f4a2

6 files changed

Lines changed: 31 additions & 22 deletions

File tree

.github/workflows/bc.yml_

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313

1414
name: backwards compatibility
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
roave_bc_check:
1822
uses: yiisoft/actions/.github/workflows/bc.yml@master

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818

1919
name: build
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
tests:
2327
name: PHP ${{ matrix.php }}-pgsql-${{ matrix.pgsql }}
@@ -64,7 +68,7 @@ jobs:
6468

6569
steps:
6670
- name: Checkout.
67-
uses: actions/checkout@v3
71+
uses: actions/checkout@v4
6872

6973
- name: Install PHP with extensions.
7074
uses: shivammathur/setup-php@v2
@@ -73,7 +77,6 @@ jobs:
7377
extensions: ${{ env.EXTENSIONS }}
7478
ini-values: date.timezone='UTC'
7579
coverage: pcov
76-
tools: composer:v2
7780

7881
- name: Update composer.
7982
run: composer self-update
@@ -90,14 +93,11 @@ jobs:
9093
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
9194
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
9295

93-
- name: Install dependencies with composer.
94-
run: composer update --no-interaction --no-progress --optimize-autoloader --ansi
95-
9696
- name: Run tests with phpunit with code coverage.
97-
run: vendor/bin/phpunit --coverage-clover=coverage.xml --colors=always
97+
run: vendor/bin/phpunit --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations
9898

9999
- name: Upload coverage to Codecov.
100-
uses: codecov/codecov-action@v3
100+
uses: codecov/codecov-action@v5
101101
with:
102102
token: ${{ secrets.CODECOV_TOKEN }}
103103
files: ./coverage.xml

.github/workflows/composer-require-checker.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414

1515
name: Composer require checker
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
1721
jobs:
1822
composer-require-checker:
1923
name: PHP ${{ matrix.php }}
@@ -36,14 +40,13 @@ jobs:
3640

3741
steps:
3842
- name: Checkout.
39-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4044

4145
- name: Install PHP with extensions.
4246
uses: shivammathur/setup-php@v2
4347
with:
4448
php-version: ${{ matrix.php }}
4549
coverage: none
46-
tools: composer:v2
4750

4851
- name: Update composer.
4952
run: composer self-update
@@ -60,8 +63,5 @@ jobs:
6063
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
6164
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
6265

63-
- name: Install dependencies with composer.
64-
run: composer update --no-interaction --no-progress --optimize-autoloader --ansi
65-
6666
- name: Check dependencies.
6767
run: vendor/bin/composer-require-checker

.github/workflows/mutation.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414

1515
name: mutation test
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
1721
jobs:
1822
mutation:
1923
name: PHP ${{ matrix.php }}-${{ matrix.os }}
@@ -45,7 +49,7 @@ jobs:
4549

4650
steps:
4751
- name: Checkout.
48-
uses: actions/checkout@v3
52+
uses: actions/checkout@v4
4953

5054
- name: Install PHP with extensions.
5155
uses: shivammathur/setup-php@v2
@@ -54,7 +58,6 @@ jobs:
5458
extensions: ${{ env.EXTENSIONS }}
5559
ini-values: memory_limit=-1
5660
coverage: pcov
57-
tools: composer:v2
5861

5962
- name: Update composer.
6063
run: composer self-update
@@ -71,9 +74,6 @@ jobs:
7174
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
7275
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
7376

74-
- name: Install dependencies with composer.
75-
run: composer update --no-interaction --no-progress --optimize-autoloader --ansi
76-
7777
- name: Run infection.
7878
run: |
7979
vendor/bin/roave-infection-static-analysis-plugin --threads=2 --ignore-msi-with-no-mutations --only-covered

.github/workflows/rector.yml_

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88

99
name: rector
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
rector:
1317
uses: yiisoft/actions/.github/workflows/rector.yml@master

.github/workflows/static.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616

1717
name: static analysis
1818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
psalm:
2125
name: PHP ${{ matrix.php }}
@@ -38,14 +42,14 @@ jobs:
3842

3943
steps:
4044
- name: Checkout.
41-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
4246

4347
- name: Install PHP with extensions.
4448
uses: shivammathur/setup-php@v2
4549
with:
4650
php-version: ${{ matrix.php }}
4751
coverage: none
48-
tools: composer:v2, cs2pr
52+
tools: cs2pr
4953

5054
- name: Update composer.
5155
run: composer self-update
@@ -62,8 +66,5 @@ jobs:
6266
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
6367
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
6468

65-
- name: Install dependencies with composer.
66-
run: composer update --no-interaction --no-progress --optimize-autoloader --ansi
67-
6869
- name: Static analysis.
6970
run: vendor/bin/psalm --config=${{ inputs.psalm-config }} --shepherd --stats --output-format=github --php-version=${{ matrix.php }}

0 commit comments

Comments
 (0)