Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/bc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:

name: backwards compatibility

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ on:

name: Composer require checker

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:

name: mariadb

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -67,7 +70,7 @@ jobs:

services:
mysql:
image: mariadb:${{ matrix.mariadb }}
image: mariadb:${{ matrix.mariadb }} # zizmor: ignore[unpinned-images]
env:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: true
MARIADB_ROOT_PASSWORD: ''
Expand All @@ -78,10 +81,12 @@ jobs:

steps:
- name: Checkout.
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
persist-credentials: false

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@b604ade2a87db23f8871b7182e69ec5e75effb45
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
Expand All @@ -91,7 +96,7 @@ jobs:
- name: Update composer.
run: composer self-update

- uses: "ramsey/composer-install@v3"
- uses: "ramsey/composer-install@a8d0d959dab41457692a5e2041bd9b757a119e3f"
with:
composer-options: "--prefer-dist --no-interaction --no-progress --ansi"

Expand All @@ -103,7 +108,7 @@ jobs:

- name: Upload coverage to Codecov.
if: matrix.php == '8.5'
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
15 changes: 10 additions & 5 deletions .github/workflows/mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:

name: mssql

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -69,7 +72,7 @@ jobs:

services:
mssql:
image: mcr.microsoft.com/mssql/server:${{ matrix.mssql.server }}
image: mcr.microsoft.com/mssql/server:${{ matrix.mssql.server }} # zizmor: ignore[unpinned-images]
env:
MSSQL_SA_PASSWORD: YourStrong!Passw0rd
ACCEPT_EULA: Y
Expand All @@ -80,7 +83,9 @@ jobs:

steps:
- name: Checkout.
uses: actions/checkout@v5
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
with:
persist-credentials: false

- name: Install ODBC driver.
run: |
Expand All @@ -91,7 +96,7 @@ jobs:
run: docker exec -i mssql /opt/mssql-tools${{ matrix.mssql.odbc-version }}/bin/sqlcmd ${{ matrix.mssql.flag }} -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE yiitest'

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@b604ade2a87db23f8871b7182e69ec5e75effb45
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
Expand All @@ -102,7 +107,7 @@ jobs:
- name: Update composer.
run: composer self-update

- uses: "ramsey/composer-install@v3"
- uses: "ramsey/composer-install@a8d0d959dab41457692a5e2041bd9b757a119e3f"
with:
composer-options: "--prefer-dist --no-interaction --no-progress --ansi"

Expand All @@ -114,7 +119,7 @@ jobs:

- name: Upload coverage to Codecov.
if: matrix.php == '8.4'
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
13 changes: 9 additions & 4 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:

name: mutation test

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -43,7 +46,7 @@ jobs:

services:
postgres:
image: postgres:18
image: postgres:18 # zizmor: ignore[unpinned-images]
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
Expand All @@ -54,10 +57,12 @@ jobs:

steps:
- name: Checkout.
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
persist-credentials: false

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@b604ade2a87db23f8871b7182e69ec5e75effb45
with:
php-version: "${{ matrix.php }}"
extensions: ${{ env.extensions }}
Expand All @@ -68,7 +73,7 @@ jobs:
- name: Update composer.
run: composer self-update

- uses: "ramsey/composer-install@v3"
- uses: "ramsey/composer-install@a8d0d959dab41457692a5e2041bd9b757a119e3f"
with:
composer-options: "--prefer-dist --no-interaction --no-progress --ansi"

Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:

name: mysql

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -59,7 +62,7 @@ jobs:

services:
mysql:
image: mysql:${{ matrix.mysql }}
image: mysql:${{ matrix.mysql }} # zizmor: ignore[unpinned-images]
env:
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_PASSWORD: ''
Expand All @@ -70,10 +73,12 @@ jobs:

steps:
- name: Checkout.
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
persist-credentials: false

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@b604ade2a87db23f8871b7182e69ec5e75effb45
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
Expand All @@ -83,7 +88,7 @@ jobs:
- name: Update composer.
run: composer self-update

- uses: "ramsey/composer-install@v3"
- uses: "ramsey/composer-install@a8d0d959dab41457692a5e2041bd9b757a119e3f"
with:
composer-options: "--prefer-dist --no-interaction --no-progress --ansi"

Expand All @@ -95,7 +100,7 @@ jobs:

- name: Upload coverage to Codecov.
if: matrix.php == '8.4'
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
15 changes: 10 additions & 5 deletions .github/workflows/oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:

name: oracle

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -57,7 +60,7 @@ jobs:

services:
oci:
image: gvenzl/oracle-xe:${{ matrix.oracle }}
image: gvenzl/oracle-xe:${{ matrix.oracle }} # zizmor: ignore[unpinned-images]
ports:
- 1521:1521
env:
Expand All @@ -72,10 +75,12 @@ jobs:

steps:
- name: Checkout.
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
persist-credentials: false

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@b604ade2a87db23f8871b7182e69ec5e75effb45
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
Expand All @@ -86,7 +91,7 @@ jobs:
- name: Update composer.
run: composer self-update

- uses: "ramsey/composer-install@v3"
- uses: "ramsey/composer-install@a8d0d959dab41457692a5e2041bd9b757a119e3f"
with:
composer-options: "--prefer-dist --no-interaction --no-progress --ansi"

Expand All @@ -98,7 +103,7 @@ jobs:

- name: Upload coverage to Codecov.
if: matrix.php == '8.4'
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
15 changes: 10 additions & 5 deletions .github/workflows/pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:

name: pgsql

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -66,7 +69,7 @@ jobs:

services:
postgres:
image: postgres:${{ matrix.pgsql }}
image: postgres:${{ matrix.pgsql }} # zizmor: ignore[unpinned-images]
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
Expand All @@ -77,10 +80,12 @@ jobs:

steps:
- name: Checkout.
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
persist-credentials: false

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@b604ade2a87db23f8871b7182e69ec5e75effb45
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
Expand All @@ -91,7 +96,7 @@ jobs:
- name: Update composer.
run: composer self-update

- uses: "ramsey/composer-install@v3"
- uses: "ramsey/composer-install@a8d0d959dab41457692a5e2041bd9b757a119e3f"
with:
composer-options: "--prefer-dist --no-interaction --no-progress --ansi"

Expand All @@ -103,7 +108,7 @@ jobs:

- name: Upload coverage to Codecov.
if: matrix.php == '8.5'
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
5 changes: 1 addition & 4 deletions .github/workflows/rector-cs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Rector + PHP CS Fixer

on:
pull_request_target:
pull_request:
paths:
- 'src/**'
- 'tests/**'
Expand All @@ -20,8 +20,5 @@ concurrency:
jobs:
rector:
uses: yiisoft/actions/.github/workflows/rector-cs.yml@master
secrets:
token: ${{ secrets.YIISOFT_GITHUB_TOKEN }}
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
php: '8.1'
13 changes: 9 additions & 4 deletions .github/workflows/sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:

name: sqlite

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -51,10 +54,12 @@ jobs:

steps:
- name: Checkout.
uses: actions/checkout@v2
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5
with:
persist-credentials: false

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@b604ade2a87db23f8871b7182e69ec5e75effb45
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
Expand All @@ -65,7 +70,7 @@ jobs:
- name: Update composer.
run: composer self-update

- uses: "ramsey/composer-install@v3"
- uses: "ramsey/composer-install@a8d0d959dab41457692a5e2041bd9b757a119e3f"
with:
composer-options: "--prefer-dist --no-interaction --no-progress --ansi"

Expand All @@ -77,7 +82,7 @@ jobs:

- name: Upload coverage to Codecov.
if: matrix.php == '8.5'
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
Loading
Loading