From 93f74bfd04a2c132aaaf752b0db80bf82ab6413c Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Tue, 18 Feb 2020 16:28:54 +0300 Subject: [PATCH] Fix GitHub action (#17869) --- .github/workflows/tests.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1630d04..6ef6b67 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,7 +24,7 @@ jobs: # image: postgres:9.6 # env: # POSTGRES_USER: postgres -# POSTGRES_PASSWORD: +# POSTGRES_PASSWORD: postgres # POSTGRES_DB: yiitest # ports: # - 5432/tcp @@ -33,7 +33,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4'] + php: ['5.4', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4'] steps: - name: Generate french locale @@ -41,19 +41,20 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Install PHP - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - extensions: apc, curl, mbstring, dom, intl, mysql, pgsql, memcached, pdo, pdo_sqlite, imagick + extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached, mysql, pdo, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, sqlite ini-values: date.timezone='UTC' - name: Install Memcached uses: niden/actions-memcached@v7 - name: Install Postgres - uses: harmon758/postgresql-action@v1 + uses: nyaruka/postgis-action@v1 with: postgresql version: 9.6 postgresql db: yiitest postgresql user: postgres + postgresql password: postgres - name: Create mysql db run: mysql -uroot -proot -e 'CREATE DATABASE `yiitest`;' - name: Get composer cache directory @@ -77,7 +78,7 @@ jobs: if: matrix.php == '7.4' || matrix.php == '7.3' || matrix.php == '7.2' - name: PHP Unit tests run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP - if: matrix.php == '7.0' || matrix.php == '5.6' + if: matrix.php == '7.0' || matrix.php == '5.6' || matrix.php == '5.5' || matrix.php == '5.4' - name: Code coverage run: | wget https://scrutinizer-ci.com/ocular.phar @@ -93,7 +94,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Install PHP - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: 7.2 - name: Get composer cache directory