diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index 7817057db..51a7a6319 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -1,25 +1,18 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - - 'psalm.xml' + paths: + - 'src/**' + - '.github/workflows/composer-require-checker.yml' + - 'composer.json' + - 'composer-require-checker.json' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - '.github/workflows/composer-require-checker.yml' + - 'composer.json' + - 'composer-require-checker.json' name: Composer require checker diff --git a/.github/workflows/db-mssql.yml b/.github/workflows/db-mssql.yml index 896560545..daad1284a 100644 --- a/.github/workflows/db-mssql.yml +++ b/.github/workflows/db-mssql.yml @@ -1,23 +1,20 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - 'tests/**' + - '.github/workflows/db-mssql.yml' + - 'composer.json' + - 'phpunit.xml.dist' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - 'tests/**' + - '.github/workflows/db-mssql.yml' + - 'composer.json' + - 'phpunit.xml.dist' name: db-mssql @@ -38,9 +35,6 @@ jobs: strategy: matrix: - os: - - ubuntu-latest - php: - 8.1 - 8.2 @@ -48,21 +42,21 @@ jobs: services: mssql: - image: mcr.microsoft.com/mssql/server:2019-latest + image: mcr.microsoft.com/mssql/server:2022-latest env: SA_PASSWORD: YourStrong!Passw0rd ACCEPT_EULA: Y MSSQL_PID: Developer ports: - 1433:1433 - options: --name=mssql --health-cmd="/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'SELECT 1'" --health-interval=10s --health-timeout=5s --health-retries=3 + options: --name=mssql --health-cmd="/opt/mssql-tools18/bin/sqlcmd -C -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'SELECT 1'" --health-interval=10s --health-timeout=5s --health-retries=3 steps: - name: Checkout. uses: actions/checkout@v3 - name: Create MS SQL Database. - run: docker exec -i mssql /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE yiitest' + run: docker exec -i mssql /opt/mssql-tools18/bin/sqlcmd -C -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE yiitest' - name: Install PHP with extensions. uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/db-mysql.yml b/.github/workflows/db-mysql.yml index 739e37970..13cc17927 100644 --- a/.github/workflows/db-mysql.yml +++ b/.github/workflows/db-mysql.yml @@ -1,23 +1,20 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - 'tests/**' + - '.github/workflows/db-mysql.yml' + - 'composer.json' + - 'phpunit.xml.dist' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - 'tests/**' + - '.github/workflows/db-mysql.yml' + - 'composer.json' + - 'phpunit.xml.dist' name: db-mysql @@ -38,9 +35,6 @@ jobs: strategy: matrix: - os: - - ubuntu-latest - php: - 8.1 - 8.2 diff --git a/.github/workflows/db-oracle.yml b/.github/workflows/db-oracle.yml index 62bd30ec2..dfd68489f 100644 --- a/.github/workflows/db-oracle.yml +++ b/.github/workflows/db-oracle.yml @@ -1,23 +1,20 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - 'tests/**' + - '.github/workflows/db-oracle.yml' + - 'composer.json' + - 'phpunit.xml.dist' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - 'tests/**' + - '.github/workflows/db-oracle.yml' + - 'composer.json' + - 'phpunit.xml.dist' name: db-oracle @@ -38,9 +35,6 @@ jobs: strategy: matrix: - os: - - ubuntu-latest - php: - 8.1 - 8.2 diff --git a/.github/workflows/db-pgsql.yml b/.github/workflows/db-pgsql.yml index 88921f407..09c0f746c 100644 --- a/.github/workflows/db-pgsql.yml +++ b/.github/workflows/db-pgsql.yml @@ -1,23 +1,20 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - 'tests/**' + - '.github/workflows/db-pgsql.yml' + - 'composer.json' + - 'phpunit.xml.dist' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - 'tests/**' + - '.github/workflows/db-pgsql.yml' + - 'composer.json' + - 'phpunit.xml.dist' name: db-pgsql @@ -38,9 +35,6 @@ jobs: strategy: matrix: - os: - - ubuntu-latest - php: - 8.1 - 8.2 @@ -48,7 +42,7 @@ jobs: services: postgres: - image: postgres:15 + image: postgres:16 env: POSTGRES_USER: root POSTGRES_PASSWORD: root diff --git a/.github/workflows/db-sqlite.yml b/.github/workflows/db-sqlite.yml index 6f49b5b33..2cb27ed6c 100644 --- a/.github/workflows/db-sqlite.yml +++ b/.github/workflows/db-sqlite.yml @@ -1,23 +1,20 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - 'tests/**' + - '.github/workflows/db-sqlite.yml' + - 'composer.json' + - 'phpunit.xml.dist' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - 'tests/**' + - '.github/workflows/db-sqlite.yml' + - 'composer.json' + - 'phpunit.xml.dist' name: db-sqlite diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index 26f19e282..809986ba9 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -1,21 +1,16 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'psalm.xml' + paths: + - 'src/**' + - '.github/workflows/mutation.yml' + - 'composer.json' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - '.github/workflows/mutation.yml' + - 'composer.json' name: mutation @@ -38,11 +33,11 @@ jobs: - ubuntu-latest php: - - 8.1 + - 8.3 services: postgres: - image: postgres:14 + image: postgres:16 env: POSTGRES_USER: root POSTGRES_PASSWORD: root diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index 21cb5b39f..74329b11d 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -1,23 +1,10 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' - - push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - '.github/workflows/rector.yml' + - 'composer.json' + - 'rector.php' name: rector diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 13212ce46..34f1828f2 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,23 +1,18 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' + paths: + - 'src/**' + - '.github/workflows/static.yml' + - 'psalm*.xml' + - 'composer.json' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' + branches: ['master'] + paths: + - 'src/**' + - '.github/workflows/static.yml' + - 'psalm*.xml' + - 'composer.json' name: static analysis @@ -28,17 +23,16 @@ concurrency: jobs: psalm: uses: yiisoft/actions/.github/workflows/psalm.yml@master - strategy: - matrix: - php: [8.1, 8.2] - config: [psalm.xml] - include: - - php: 8.3 - config: psalm83.xml with: os: >- ['ubuntu-latest'] php: >- - ['${{ matrix.php }}'] - psalm-config: >- - ${{ matrix.config }} + ['8.1', '8.2'] + psalm83: + uses: yiisoft/actions/.github/workflows/psalm.yml@master + with: + psalm-config: psalm83.xml + os: >- + ['ubuntu-latest'] + php: >- + ['8.3']