Skip to content

Add How to Run Tests on README #37

Add How to Run Tests on README

Add How to Run Tests on README #37

Workflow file for this run

name: Test PR
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
ubuntu-laravel-10:
name: Laravel ${{ matrix.laravel-versions }} PHP ${{ matrix.php-versions }} ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '8.1' ]
laravel-versions: [ '^10.0' ]
steps:
- uses: matriphe/laravel-pkg-test-action@v2
with:
operating_system: ${{ matrix.operating-system }}
php_version: ${{ matrix.php-versions }}
laravel_version: ${{ matrix.laravel-versions }}
phpunit_args: --group unit
laravel_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
package_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
- name: Run Ubuntu Tests
run: vendor/bin/phpunit --group ubuntu
- name: Run Larinfo Command
run: php vendor/bin/testbench larinfo
macos-laravel-10:
name: Laravel ${{ matrix.laravel-versions }} PHP ${{ matrix.php-versions }} ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ macos-11, macos-12 ]
php-versions: [ '8.1' ]
laravel-versions: [ '^10.0' ]
steps:
- uses: matriphe/laravel-pkg-test-action@v2
with:
operating_system: ${{ matrix.operating-system }}
php_version: ${{ matrix.php-versions }}
laravel_version: ${{ matrix.laravel-versions }}
phpunit_args: --group unit
laravel_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
package_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
- name: Run MacOS Tests
run: vendor/bin/phpunit --group macos
- name: Run Larinfo Command
run: php vendor/bin/testbench larinfo
windows-laravel-10:
name: Laravel ${{ matrix.laravel-versions }} PHP ${{ matrix.php-versions }} ${{ matrix.operating-system }} without com_dotnet
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ windows-2019 ]
php-versions: [ '8.1' ]
laravel-versions: [ '^10.0' ]
steps:
- uses: matriphe/laravel-pkg-test-action@v2
with:
operating_system: ${{ matrix.operating-system }}
php_version: ${{ matrix.php-versions }}
laravel_version: ${{ matrix.laravel-versions }}
phpunit_args: --group unit
laravel_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
package_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
php_extensions: pdo_sqlite,sqlite3,fileinfo
shell_name: pwsh
- name: Run Windows Tests
shell: pwsh
run: vendor/bin/phpunit --group windows
- name: Run Larinfo Command
shell: pwsh
run: php vendor/bin/testbench larinfo
windows-with-com-dotnet-laravel-10:
name: Laravel ${{ matrix.laravel-versions }} PHP ${{ matrix.php-versions }} ${{ matrix.operating-system }} with com_dotnet
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ windows-2019 ]
php-versions: [ '8.1' ]
laravel-versions: [ '^10.0' ]
steps:
- uses: matriphe/laravel-pkg-test-action@v2
with:
operating_system: ${{ matrix.operating-system }}
php_version: ${{ matrix.php-versions }}
laravel_version: ${{ matrix.laravel-versions }}
phpunit_args: --group unit
laravel_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
package_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
php_extensions: pdo_sqlite,sqlite3,fileinfo,com_dotnet
shell_name: pwsh
- name: Run Windows Tests
shell: pwsh
run: vendor/bin/phpunit --group windows
- name: Run Larinfo Command
shell: pwsh
run: php vendor/bin/testbench larinfo