diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5825cf5..a1eb324 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,7 @@ on: - 'phpunit.xml.dist' push: + branches: ['master'] paths-ignore: - 'docs/**' - 'README.md' @@ -21,6 +22,10 @@ on: name: build +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: tests: name: PHP ${{ matrix.php }}-oracle-${{ matrix.oracle }} diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index fb9dfd5..b69b783 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -11,6 +11,7 @@ on: - 'psalm.xml' push: + branches: ['master'] paths-ignore: - 'docs/**' - 'README.md' @@ -23,6 +24,10 @@ on: name: Composer require checker +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: composer-require-checker: name: PHP ${{ matrix.php }} diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index a5f2b35..b17390f 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -9,6 +9,7 @@ on: - 'psalm.xml' push: + branches: ['master'] paths-ignore: - 'docs/**' - 'README.md' @@ -19,6 +20,10 @@ on: name: mutation +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: mutation: name: PHP ${{ matrix.php }}-${{ matrix.os }} diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index e21dd37..31bc35d 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -10,6 +10,7 @@ on: - 'psalm.xml' push: + branches: ['master'] paths-ignore: - 'docs/**' - 'README.md' @@ -21,6 +22,10 @@ on: name: rector +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: rector: uses: yiisoft/actions/.github/workflows/rector.yml@master diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 0b17076..c41868b 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -10,6 +10,7 @@ on: - 'phpunit.xml.dist' push: + branches: ['master'] paths-ignore: - 'docs/**' - 'README.md' @@ -21,6 +22,10 @@ on: name: static analysis +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: psalm: name: PHP ${{ matrix.php }} diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 39d4a4b..7bbd9a1 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -6,8 +6,6 @@ filter: - src/ build: - image: default-bionic - environment: php: version: 8.1.18 @@ -52,18 +50,11 @@ build: - export ORACLE_HOME=/opt/oracle/instantclient_21_3 - sudo sh -c "echo /opt/oracle/instantclient_21_3 > /etc/ld.so.conf.d/oracle-instantclient.conf" - sudo ldconfig - - curl -k -L --output /home/scrutinizer/oci8-3.0.1.tgz https://pecl.php.net/get/oci8-3.0.1.tgz - - cd /home/scrutinizer - - tar -zxf oci8-3.0.1.tgz - - cd oci8-3.0.1 - - phpize - - ./configure --with-oci8=instantclient,/opt/oracle/instantclient_21_3 - - make - - sudo make install + - sh -c "echo 'instantclient,/opt/oracle/instantclient_21_3' | pecl install oci8-3.0.1" - sudo ldconfig - - curl -k -L --output /home/scrutinizer/php-8.1.18.tar.gz https://www.php.net/distributions/php-8.1.18.tar.gz + - wget -O /home/scrutinizer/php-8.1.18.tar.gz https://www.php.net/distributions/php-8.1.18.tar.gz - cd /home/scrutinizer - - tar -zxf php-8.1.18.tar.gz + - tar -zxvf php-8.1.18.tar.gz - cd php-8.1.18/ext/pdo_oci - phpize - ./configure --with-pdo-oci=instantclient,/opt/oracle/instantclient_21_3 @@ -73,7 +64,7 @@ build: - cd /home/scrutinizer/build/ - composer self-update - composer config preferred-install.yiisoft/db source - - composer update --no-interaction --no-progress --optimize-autoloader --ansi + - composer require yiisoft/db:dev-master --no-interaction --no-progress --optimize-autoloader --ansi - echo 'extension=pdo_oci' >> /home/scrutinizer/.phpenv/versions/8.1.18/etc/php.ini tests: