diff --git a/.env.testing b/.env.testing index b8810212..7bf00018 100644 --- a/.env.testing +++ b/.env.testing @@ -1,19 +1,19 @@ APP_DEBUG=false APP_ENV=testing -DB_CONNECTION=mysql +DB_CONNECTION=sqlite DB_HOST=127.0.0.1 DB_PORT=3306 -DB_DATABASE=test +DB_DATABASE=:memory: DB_USERNAME=root DB_PASSWORD=root DB_PREFIX= PWD_METHOD=BCRYPT -SALT=c67709dd8b7b733aca0d570681fe96cf +BCRYPT_ROUNDS=4 APP_KEY=base64:eVX/xzF5NhpGB2luswliFx9XSBsbbAP21wOi68X/P34= -MAIL_MAILER=smtp +MAIL_MAILER=array MAIL_HOST=localhost MAIL_PORT=465 MAIL_USERNAME= diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6cf2b03a..b396588a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -57,17 +57,13 @@ jobs: restore-keys: ${{ runner.os }}-composer- - name: Install Composer dependencies run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader - - name: Prepare application - run: | - cp .env.example .env - php artisan key:generate - name: Run tests only if: matrix.php != '7.2' - run: ./scripts/phpunit.ps1 + run: ./vendor/bin/phpunit shell: pwsh - name: Run tests with coverage report if: matrix.php == '7.2' - run: ./scripts/phpunit.ps1 -Coverage + run: ./vendor/bin/phpunit --coverage-clover=coverage.xml shell: pwsh - name: Upload coverage report uses: codecov/codecov-action@v1 diff --git a/phpunit.xml b/phpunit.xml index 7bd16ba4..dde9176b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,8 +1,5 @@