Skip to content

Commit 41e5cd1

Browse files
authored
Update workflows (#309)
1 parent 507e868 commit 41e5cd1

File tree

5 files changed

+12
-20
lines changed

5 files changed

+12
-20
lines changed

.github/workflows/bc.yml_

+4
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

+3-7
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
run: docker exec -i oci bash -c "sqlplus -s system/root@XE <<< 'ALTER USER system DEFAULT TABLESPACE USERS;'"
7070

7171
- name: Checkout.
72-
uses: actions/checkout@v3
72+
uses: actions/checkout@v4
7373

7474
- name: Install PHP with extensions.
7575
uses: shivammathur/setup-php@v2
@@ -78,7 +78,6 @@ jobs:
7878
extensions: ${{ env.EXTENSIONS }}
7979
ini-values: date.timezone='UTC'
8080
coverage: pcov
81-
tools: composer:v2
8281

8382
- name: Update composer.
8483
run: composer self-update
@@ -95,14 +94,11 @@ jobs:
9594
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
9695
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
9796

98-
- name: Install dependencies with composer.
99-
run: composer update --no-interaction --no-progress --optimize-autoloader --ansi
100-
10197
- name: Run tests with phpunit with code coverage.
102-
run: vendor/bin/phpunit --coverage-clover=coverage.xml --colors=always
98+
run: vendor/bin/phpunit --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations
10399

104100
- name: Upload coverage to Codecov.
105-
uses: codecov/codecov-action@v3
101+
uses: codecov/codecov-action@v5
106102
with:
107103
token: ${{ secrets.CODECOV_TOKEN }}
108104
files: ./coverage.xml

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

+1-5
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,13 @@ jobs:
4040

4141
steps:
4242
- name: Checkout.
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4444

4545
- name: Install PHP with extensions.
4646
uses: shivammathur/setup-php@v2
4747
with:
4848
php-version: ${{ matrix.php }}
4949
coverage: none
50-
tools: composer:v2
5150

5251
- name: Update composer.
5352
run: composer self-update
@@ -64,8 +63,5 @@ jobs:
6463
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
6564
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
6665

67-
- name: Install dependencies with composer.
68-
run: composer update --no-interaction --no-progress --optimize-autoloader --ansi
69-
7066
- name: Check dependencies.
7167
run: vendor/bin/composer-require-checker

.github/workflows/mutation.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
env:
2626
COMPOSER_ROOT_VERSION: 1.0.0
27-
EXTENSIONS: pdo, pdo_oci, oci8
27+
EXTENSIONS: pdo, pdo_oci
2828

2929
runs-on: ${{ matrix.os }}
3030

@@ -56,7 +56,7 @@ jobs:
5656
run: docker exec -i oci bash -c "sqlplus -s system/root@XE <<< 'ALTER USER system DEFAULT TABLESPACE USERS;'"
5757

5858
- name: Checkout.
59-
uses: actions/checkout@v3
59+
uses: actions/checkout@v4
6060

6161
- name: Install PHP with extensions.
6262
uses: shivammathur/setup-php@v2
@@ -65,7 +65,6 @@ jobs:
6565
extensions: ${{ env.EXTENSIONS }}
6666
ini-values: memory_limit=-1
6767
coverage: pcov
68-
tools: composer:v2, pecl
6968

7069
- name: Set environment variables pull request linux.
7170
uses: yiisoft/actions/db/environment-linux@master
@@ -79,9 +78,6 @@ jobs:
7978
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
8079
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
8180

82-
- name: Install dependencies with composer.
83-
run: composer update --no-interaction --no-progress --optimize-autoloader --ansi
84-
8581
- name: Run infection.
8682
run: |
8783
vendor/bin/roave-infection-static-analysis-plugin --threads=2 --ignore-msi-with-no-mutations --only-covered

.github/workflows/static.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ jobs:
4242

4343
steps:
4444
- name: Checkout.
45-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
4646

4747
- name: Install PHP with extensions.
4848
uses: shivammathur/setup-php@v2
4949
with:
5050
php-version: ${{ matrix.php }}
5151
coverage: none
52-
tools: composer:v2, cs2pr
52+
tools: cs2pr
5353

5454
- name: Update composer.
5555
run: composer self-update

0 commit comments

Comments
 (0)