Skip to content

Commit

Permalink
Fix scrutinizer test, add concurrency github actions. (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw authored Sep 2, 2023
1 parent 6888e26 commit 8a066f3
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'phpunit.xml.dist'

push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
Expand All @@ -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 }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- 'psalm.xml'

push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
Expand All @@ -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 }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- 'psalm.xml'

push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
Expand All @@ -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 }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'psalm.xml'

push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'phpunit.xml.dist'

push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
Expand All @@ -21,6 +22,10 @@ on:

name: static analysis

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
psalm:
name: PHP ${{ matrix.php }}
Expand Down
17 changes: 4 additions & 13 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ filter:
- src/

build:
image: default-bionic

environment:
php:
version: 8.1.18
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 8a066f3

Please sign in to comment.