Fix scripts, README and examples

This commit is contained in:
Shivam Mathur
2019-10-10 17:47:17 +05:30
parent 409e055931
commit c1c0acc338
17 changed files with 87 additions and 78 deletions

View File

@ -1,3 +1,4 @@
# GitHub Action for CodeIgniter
name: Testing CodeIgniter
on: [push, pull_request]
jobs:
@ -19,9 +20,6 @@ jobs:
coverage: xdebug #optional
- name: Install dependencies
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Test with phpunit in windows
if: matrix.operating-system == 'windows-latest'
run: .\vendor\bin\phpunit --coverage-text
- name: Test with phpunit
if: matrix.operating-system != 'windows-latest'
run: vendor/bin/phpunit --coverage-text
run: vendor/bin/phpunit --coverage-text
shell: pwsh

View File

@ -1,3 +1,4 @@
# GitHub Action for Laravel with MySQL and Redis
name: Testing Laravel with MySQL
on: [push, pull_request]
jobs:

View File

@ -1,3 +1,4 @@
# GitHub Action for Laravel with PostgreSQL and Redis
name: Testing Laravel with PostgreSQL
on: [push, pull_request]
jobs:

View File

@ -1,4 +1,5 @@
name: Unit Testing Laravel
# GitHub Action for Laravel
name: Testing Laravel
on: [push, pull_request]
jobs:
laravel:
@ -27,9 +28,6 @@ jobs:
php artisan key:generate
- name: Clear Config
run: php artisan config:clear
- name: Test with phpunit in windows
if: matrix.operating-system == 'windows-latest'
run: .\vendor\bin\phpunit --coverage-text
- name: Test with phpunit
if: matrix.operating-system != 'windows-latest'
run: vendor/bin/phpunit --coverage-text
run: vendor/bin/phpunit --coverage-text
shell: pwsh

View File

@ -1,3 +1,4 @@
# GitHub Action for Slim Framework
name: Testing Slim Framework
on: [push, pull_request]
jobs:
@ -19,9 +20,6 @@ jobs:
coverage: xdebug #optional
- name: Install dependencies
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Test with phpunit in windows
if: matrix.operating-system == 'windows-latest'
run: .\vendor\bin\phpunit --coverage-text
- name: Test with phpunit
if: matrix.operating-system != 'windows-latest'
run: vendor/bin/phpunit --coverage-text
run: vendor/bin/phpunit --coverage-text
shell: pwsh

View File

@ -1,7 +1,8 @@
# GitHub Action for Symfony with MySQL
name: Testing Symfony with MySQL
on: [push, pull_request]
jobs:
laravel:
symfony:
name: Symfony (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
services:

View File

@ -1,7 +1,8 @@
# GitHub Action for Symfony with PostgreSQL
name: Testing Symfony with PostgreSQL
on: [push, pull_request]
jobs:
laravel:
symfony:
name: Symfony (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
services:

View File

@ -1,7 +1,8 @@
name: Unit Testing Symfony
# GitHub Action for Symfony
name: Testing Symfony
on: [push, pull_request]
jobs:
laravel:
symfony:
name: Symfony (PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }})
runs-on: ${{ matrix.operating-system }}
strategy:

View File

@ -1,7 +1,8 @@
# GitHub Action for Yii Framework with MySQL
name: Testing Yii2 with MySQL
on: [push, pull_request]
jobs:
laravel:
yii:
name: Yii2 (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
env:
@ -31,7 +32,7 @@ jobs:
- name: Set Node.js 10.x
uses: actions/setup-node@master
with:
version: 10.x
node-version: 10.x
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@master #https://github.com/shivammathur/setup-php
with:

View File

@ -1,7 +1,8 @@
# GitHub Action for Yii Framework with PostgreSQL
name: Testing Yii2 with PostgreSQL
on: [push, pull_request]
jobs:
laravel:
yii:
name: Yii2 (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
env:
@ -31,7 +32,7 @@ jobs:
- name: Set Node.js 10.x
uses: actions/setup-node@master
with:
version: 10.x
node-version: 10.x
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@master #https://github.com/shivammathur/setup-php
with:

View File

@ -1,3 +1,4 @@
# GitHub Action for Zend Framework
name: Testing Zend Framework
on: [push, pull_request]
jobs:
@ -21,9 +22,6 @@ jobs:
run: |
composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
composer require --dev phpunit/phpunit squizlabs/php_codesniffer zendframework/zend-test
- name: Test with phpunit in windows
if: matrix.operating-system == 'windows-latest'
run: .\vendor\bin\phpunit --coverage-text
- name: Test with phpunit
if: matrix.operating-system != 'windows-latest'
run: vendor/bin/phpunit --coverage-text
run: vendor/bin/phpunit --coverage-text
shell: pwsh