mirror of https://github.com/hasinhayder/hydra
parent
df424b2d43
commit
dcedd104ed
@ -1,43 +0,0 @@
|
|||||||
name: "PHP 8.0 Tests"
|
|
||||||
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
php: [8.0]
|
|
||||||
|
|
||||||
name: PHP${{ matrix.php }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Setup PHP
|
|
||||||
uses: shivammathur/setup-php@v2
|
|
||||||
with:
|
|
||||||
php-version: ${{ matrix.php }}
|
|
||||||
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
|
|
||||||
coverage: none
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: composer install
|
|
||||||
|
|
||||||
- name: Create Environment file and generate app key
|
|
||||||
run: |
|
|
||||||
cp .env.example .env
|
|
||||||
|
|
||||||
php artisan key:generate
|
|
||||||
|
|
||||||
- name: Create database and run migration
|
|
||||||
run: |
|
|
||||||
touch database/hydra.sqlite
|
|
||||||
php artisan migrate
|
|
||||||
php artisan db:seed
|
|
||||||
|
|
||||||
- name: Execute tests
|
|
||||||
run: vendor/bin/phpunit
|
|
@ -1,31 +1,27 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
|
||||||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
|
<testsuites>
|
||||||
bootstrap="vendor/autoload.php"
|
<testsuite name="Unit">
|
||||||
colors="true"
|
<directory suffix="Test.php">./tests/Unit</directory>
|
||||||
>
|
</testsuite>
|
||||||
<testsuites>
|
<testsuite name="Feature">
|
||||||
<testsuite name="Unit">
|
<directory suffix="Test.php">./tests/Feature</directory>
|
||||||
<directory suffix="Test.php">./tests/Unit</directory>
|
</testsuite>
|
||||||
</testsuite>
|
</testsuites>
|
||||||
<testsuite name="Feature">
|
<php>
|
||||||
<directory suffix="Test.php">./tests/Feature</directory>
|
<env name="APP_ENV" value="testing"/>
|
||||||
</testsuite>
|
<env name="BCRYPT_ROUNDS" value="4"/>
|
||||||
</testsuites>
|
<env name="CACHE_DRIVER" value="array"/>
|
||||||
<coverage processUncoveredFiles="true">
|
<!-- <env name="DB_CONNECTION" value="sqlite"/> -->
|
||||||
<include>
|
<!-- <env name="DB_DATABASE" value=":memory:"/> -->
|
||||||
<directory suffix=".php">./app</directory>
|
<env name="MAIL_MAILER" value="array"/>
|
||||||
</include>
|
<env name="QUEUE_CONNECTION" value="sync"/>
|
||||||
</coverage>
|
<env name="SESSION_DRIVER" value="array"/>
|
||||||
<php>
|
<env name="TELESCOPE_ENABLED" value="false"/>
|
||||||
<env name="APP_ENV" value="testing"/>
|
</php>
|
||||||
<env name="BCRYPT_ROUNDS" value="4"/>
|
<source>
|
||||||
<env name="CACHE_DRIVER" value="array"/>
|
<include>
|
||||||
<!-- <env name="DB_CONNECTION" value="sqlite"/> -->
|
<directory suffix=".php">./app</directory>
|
||||||
<!-- <env name="DB_DATABASE" value=":memory:"/> -->
|
</include>
|
||||||
<env name="MAIL_MAILER" value="array"/>
|
</source>
|
||||||
<env name="QUEUE_CONNECTION" value="sync"/>
|
|
||||||
<env name="SESSION_DRIVER" value="array"/>
|
|
||||||
<env name="TELESCOPE_ENABLED" value="false"/>
|
|
||||||
</php>
|
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
Loading…
Reference in new issue