-
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow fix and tests update (#173)
* added .idea folder into .gitignore * added .phpunit.cache folder into .gitignore * phpunit.xml.dist schema updated * code style * PHPUnit replaced by Pest * Tests refactoring * PHP 8.0 compatibility * github test runner fixed * PHP CS Fixer added and reconfigured * PHP CS Fixer configuration rules fix * PHP CS Fixer configuration rules fixed * Update composer.json * Update composer.json and run-tests.yml * Revert "Update composer.json and run-tests.yml" This reverts commit a3d8682. * Update composer.json * removed unused migration * removed constants and comments in test files * removed DOCBlocks form Pest.php * removed declare(strict_types=1); * Fix styling * package ServiceProvider updated with spatie/laravel-package-tools * updated README.md * Fix Laravel 8 compatibility * grammar fix README.md * Translation loading fix * Fix styling * Revert "Fix styling" This reverts commit a43c7b5. * Revert "Translation loading fix" This reverts commit 57e03e4. * $this->app['config'] -> config() --------- Co-authored-by: alex <aleksandar.naydenov@delta.bg> Co-authored-by: aon4o <aon4o@users.noreply.github.com>
- Loading branch information
1 parent
c946d94
commit de25698
Showing
35 changed files
with
579 additions
and
652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
name: run-tests | ||
|
||
on: | ||
- push | ||
- pull_request | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
php: [8.2, 8.1, 8.0] | ||
laravel: ['8.*', '9.*', '10.*', '11.*'] | ||
dependency-version: [prefer-stable] | ||
include: | ||
- laravel: 10.* | ||
testbench: 8.* | ||
- laravel: 9.* | ||
testbench: 7.* | ||
- laravel: 8.* | ||
testbench: 6.* | ||
- laravel: 11.* | ||
testbench: 9.* | ||
exclude: | ||
- laravel: 10.* | ||
php: 8.0 | ||
- laravel: 11.* | ||
php: 8.1 | ||
- laravel: 11.* | ||
php: 8.0 | ||
|
||
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update | ||
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction | ||
- name: Execute tests | ||
run: vendor/bin/phpunit | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
php: [ 8.2, 8.1, 8.0 ] | ||
laravel: [ '8.*', '9.*', '10.*', '11.*' ] | ||
dependency-version: [ prefer-stable ] | ||
include: | ||
- laravel: 10.* | ||
testbench: 8.* | ||
- laravel: 9.* | ||
testbench: 7.* | ||
- laravel: 8.* | ||
testbench: 6.* | ||
- laravel: 11.* | ||
testbench: 9.* | ||
exclude: | ||
- laravel: 10.* | ||
php: 8.0 | ||
- laravel: 11.* | ||
php: 8.1 | ||
- laravel: 11.* | ||
php: 8.0 | ||
|
||
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update | ||
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction | ||
- name: Execute tests | ||
run: composer test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,7 @@ build | |
composer.lock | ||
docs | ||
vendor | ||
.php_cs.cache | ||
.php-cs-fixer.cache | ||
.phpunit.cache | ||
.phpunit.result.cache | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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" | ||
> | ||
<coverage> | ||
<report> | ||
<clover outputFile="build/logs/clover.xml"/> | ||
<html outputDirectory="build/coverage"/> | ||
<text outputFile="build/coverage.txt"/> | ||
</report> | ||
</coverage> | ||
<logging> | ||
<junit outputFile="build/report.junit.xml"/> | ||
</logging> | ||
<testsuites> | ||
<testsuite name="Test Suite"> | ||
<directory>./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory>./app</directory> | ||
<directory>./src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
Oops, something went wrong.