Skip to content

Commit

Permalink
tests: improved test execution and validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lsnepomuceno committed Feb 16, 2023
1 parent 84aa1ff commit d1fce0e
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 674 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
operating-system: [ ubuntu-22.04, ubuntu-latest ]
php-versions: [ '8.1', '8.2' ]
env:
extensions: mbstring, dom, fileinfo, openssl, json, imagick, swoole
extensions: mbstring, dom, fileinfo, openssl, json, imagick, swoole, sqlite3
key: cache-v5
steps:
- name: Checkout
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
composer -V
php -r "if(strpos(@exec('composer -V'), 'Composer version') === false) {throw new Exception('Composer not found');}"
- name: Validate composer.json e composer.lock
- name: Validate composer.json and composer.lock
run: |
composer validate
Expand All @@ -67,4 +67,4 @@ jobs:
- name: Execute tests
run: |
vendor/bin/phpunit
vendor/bin/testbench package:test
141 changes: 70 additions & 71 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,75 +1,74 @@
{
"name": "lsnepomuceno/laravel-a1-pdf-sign",
"description": "Sign PDF files with valid x509 certificates",
"license": "MIT",
"type": "library",
"homepage": "https://github.com/lsnepomuceno/laravel-a1-pdf-sign",
"support": {
"issues": "https://github.com/lsnepomuceno/laravel-a1-pdf-sign/issues",
"source": "https://github.com/lsnepomuceno/laravel-a1-pdf-sign"
},
"keywords": [
"a1",
"sign pdf",
"sign",
"x509",
"laravel",
"certificate",
"icp brasil"
],
"authors": [
{
"name": "Lucas Nepomuceno",
"email": "[email protected]",
"homepage": "https://github.com/lsnepomuceno"
}
],
"require": {
"php": "^8.1",
"ext-gd": "*",
"ext-json": "*",
"ext-fileinfo": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"illuminate/support": "^9 || ^10",
"illuminate/encryption": "^9 || ^10",
"illuminate/http": "^9 || ^10",
"tecnickcom/tc-lib-pdf": "^8",
"tecnickcom/tcpdf": "6.4.* || 6.6.*",
"setasign/fpdi": "^2.3",
"symfony/process": "^6",
"intervention/image": "^2.7"
},
"autoload": {
"psr-4": {
"LSNepomuceno\\LaravelA1PdfSign\\": "./src"
},
"files": [
"src/Helpers/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"LSNepomuceno\\LaravelA1PdfSign\\Tests\\": "./tests"
}
},
"scripts": {
"test": "vendor/bin/phpunit"
},
"extra": {
"laravel": {
"providers": [
"LSNepomuceno\\LaravelA1PdfSign\\LaravelA1PdfSignServiceProvider"
]
}
},
"suggest": {
"ext-gd": "To use GD library based image processing.",
"ext-imagick": "To use Imagick based image processing."
"name": "lsnepomuceno/laravel-a1-pdf-sign",
"description": "Sign PDF files with valid x509 certificates",
"license": "MIT",
"type": "library",
"homepage": "https://github.com/lsnepomuceno/laravel-a1-pdf-sign",
"support": {
"issues": "https://github.com/lsnepomuceno/laravel-a1-pdf-sign/issues",
"source": "https://github.com/lsnepomuceno/laravel-a1-pdf-sign"
},
"keywords": [
"a1",
"sign pdf",
"sign",
"x509",
"laravel",
"certificate",
"icp brasil"
],
"authors": [
{
"name": "Lucas Nepomuceno",
"email": "[email protected]",
"homepage": "https://github.com/lsnepomuceno"
}
],
"require": {
"php": "^8.1",
"ext-gd": "*",
"ext-json": "*",
"ext-fileinfo": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"illuminate/support": "^9 || ^10",
"illuminate/encryption": "^9 || ^10",
"illuminate/http": "^9 || ^10",
"tecnickcom/tc-lib-pdf": "^8",
"tecnickcom/tcpdf": "6.4.* || 6.6.*",
"setasign/fpdi": "^2.3",
"symfony/process": "^6",
"intervention/image": "^2.7"
},
"autoload": {
"psr-4": {
"LSNepomuceno\\LaravelA1PdfSign\\": "./src"
},
"require-dev": {
"orchestra/testbench": "^7 || ^8",
"nunomaduro/collision": "^6 || ^7",
"phpmd/phpmd": "^2.11"
"files": [
"src/Helpers/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"LSNepomuceno\\LaravelA1PdfSign\\Tests\\": "./tests"
}
},
"scripts": {
"test": "vendor/bin/testbench package:test"
},
"extra": {
"laravel": {
"providers": [
"LSNepomuceno\\LaravelA1PdfSign\\LaravelA1PdfSignServiceProvider"
]
}
},
"suggest": {
"ext-gd": "To use GD library based image processing.",
"ext-imagick": "To use Imagick based image processing."
},
"require-dev": {
"orchestra/testbench": "^8",
"nunomaduro/collision": "^7"
}
}
Loading

0 comments on commit d1fce0e

Please sign in to comment.