diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..7546b77 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,51 @@ +name: Bug Report +description: Report an Issue or Bug with the Package +title: "[Bug]: " +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + We're sorry to hear you have a problem. Can you help us solve it by providing the following details. + - type: textarea + id: what-happened + attributes: + label: What happened? + description: What did you expect to happen? + placeholder: I cannot currently do X thing because when I do, it breaks X thing. + validations: + required: true + - type: input + id: package-version + attributes: + label: Package Version + description: What version of our Package are you running? Please be as specific as possible + placeholder: 1.0.0 + validations: + required: true + - type: input + id: php-version + attributes: + label: PHP Version + description: What version of PHP are you running? Please be as specific as possible + placeholder: 8.3.0 + validations: + required: true + - type: input + id: laravel-version + attributes: + label: Laravel Version + description: What version of Laravel are you running? Please be as specific as possible + placeholder: 11.0.0 + validations: + required: true + - type: dropdown + id: operating-systems + attributes: + label: Which operating systems does with happen with? + description: You may select more than one. + multiple: true + options: + - macOS + - Windows + - Linux diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index e5264a1..0000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,8 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: Questions & Feature Requests - url: https://github.com/codebar-ag/laravel-postfinance-b2b/issues/new - about: Ask the community for help - - name: Report a security issue - url: https://github.com/codebar-ag/laravel-postfinance-b2b/security/policy - about: Learn how to notify us for sensitive bugs diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..b259caf --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,12 @@ +name: Question or Feature +description: Open a Question or Feature Request +title: "[Feature]: " +labels: ["feature"] +body: + - type: textarea + id: question-feature + attributes: + label: Question or Feature? + description: Enter a Question or Feature Request + validations: + required: true diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 3ca5518..d13152a 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -11,12 +11,13 @@ jobs: runs-on: ${{ matrix.os }} strategy: fail-fast: true - max-parallel: 1 matrix: - os: [ ubuntu-latest, windows-latest ] - php: [ 8.2, 8.3 ] + # os: [ ubuntu-latest, windows-latest ] + os: [ ubuntu-latest ] + php: [ 8.2 ] laravel: [ 10.* ] - stability: [ prefer-lowest, prefer-stable ] + #stability: [ prefer-lowest, prefer-stable ] + stability: [ prefer-stable ] include: - laravel: 10.* testbench: 8.* @@ -44,19 +45,12 @@ jobs: composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - - name: Set phpunit.xml - run: cp phpunit.xml.dist phpunit.xml - - name: Execute tests run: vendor/bin/pest env: - POSTFINANCE_B2B_USERNAME: ${{ secrets.POSTFINANCE_B2B_USERNAME }} - POSTFINANCE_B2B_PASSWORD: ${{ secrets.POSTFINANCE_B2B_PASSWORD }} - POSTFINANCE_B2B_DEBUG: ${{ secrets.POSTFINANCE_B2B_DEBUG }} - POSTFINANCE_B2B_TESTS_PAYER_ID: ${{ secrets.POSTFINANCE_B2B_TESTS_PAYER_ID }} - POSTFINANCE_B2B_TESTS_BILLER_ID: ${{ secrets.POSTFINANCE_B2B_TESTS_BILLER_ID }} - POSTFINANCE_B2B_TESTS_TRANSACTION_ID: ${{ secrets.POSTFINANCE_B2B_TESTS_TRANSACTION_ID }} - POSTFINANCE_B2B_TESTS_FILE_TYPE: ${{ secrets.POSTFINANCE_B2B_TESTS_FILE_TYPE }} + ZAMMAD_URL: ${{ secrets.ZAMMAD_URL }} + ZAMMAD_TOKEN: ${{ secrets.ZAMMAD_TOKEN }} + ZAMMAD_OBJECT_REFERENCE_ERROR_IGNORE: true - name: Store test reports uses: actions/upload-artifact@v2 @@ -64,4 +58,4 @@ jobs: name: Store report retention-days: 1 path: | - ./reports + ./reports \ No newline at end of file diff --git a/.phpunit.cache/test-results b/.phpunit.cache/test-results new file mode 100644 index 0000000..7f2fc30 --- /dev/null +++ b/.phpunit.cache/test-results @@ -0,0 +1 @@ +{"version":"pest_2.34.0","defects":{"P\\Tests\\Feature\\GetInvoicePayerTest::__pest_evaluable_it_b2b_service_getInvoicePayer_test":7},"times":{"P\\Tests\\Feature\\GetInvoicePayerTest::__pest_evaluable_it_b2b_service_getInvoicePayer_test":0.542,"P\\Tests\\Feature\\GetInvoiceListPayerTest::__pest_evaluable_it_b2b_service_getInvoiceListPayer_test":0.405,"P\\Tests\\Feature\\PingTest::__pest_evaluable_it_b2b_service_executePing_test":0.408}} \ No newline at end of file diff --git a/composer.json b/composer.json index a7264ce..c26aa30 100644 --- a/composer.json +++ b/composer.json @@ -1,86 +1,85 @@ { - "name": "codebar-ag/laravel-postfinance-b2b", - "description": "B2B Service integration for Laravel", - "keywords": [ - "postfinance", - "b2b", - "laravel", - "codebar-ag", - "laravel-postfinance-b2b" - ], - "homepage": "https://github.com/codebar-ag/laravel-postfinance-b2b", - "license": "MIT", - "authors": [ - { - "name": "Sebastian Bürgin", - "email": "sebastian.buergin@codebar.ch", - "homepage": "https://www.codebar.ch", - "role": "Developer" - } - ], - "require": { - "php": "^8.2|^8.3", - "ext-soap": "*", - "ext-xsl": "*", - "guzzlehttp/guzzle": "^7.8", - "illuminate/contracts": "^10.0", - "monolog/monolog": "^3.5", - "nyholm/psr7": "^1.8", - "php-http/logger-plugin": "^1.3", - "php-soap/psr18-wsse-middleware": "^2.3", - "phpro/soap-client": "^3.1", - "spatie/laravel-package-tools": "^1.16", - "symfony/http-client": "^6.4" - }, - "require-dev": { - "laravel/pint": "^1.13", - "nunomaduro/collision": "^7.10", - "nunomaduro/larastan": "^2.8", - "orchestra/testbench": "^8.21", - "pestphp/pest": "^2.3", - "pestphp/pest-plugin-laravel": "^2.2", - "pestphp/pest-plugin-arch": "^2.6", - "phpstan/extension-installer": "^1.3", - "phpstan/phpstan-deprecation-rules": "^1.1", - "phpstan/phpstan-phpunit": "^1.3", - "phpunit/phpunit": "^10.5", - "spatie/laravel-ray": "^1.35" - }, - "autoload": { - "psr-4": { - "CodebarAg\\PostfinanceB2B\\": "src" - } - }, - "autoload-dev": { - "psr-4": { - "CodebarAg\\PostfinanceB2B\\Tests\\": "tests" - } - }, - "scripts": { - "analyse": "vendor/bin/phpstan analyse", - "test": "vendor/bin/pest", - "test-coverage": "vendor/bin/pest --coverage", - "format": "vendor/bin/pint" - }, - "config": { - "sort-packages": true, - "allow-plugins": { - "composer/package-versions-deprecated": false, - "pestphp/pest-plugin": true, - "phpstan/extension-installer": true, - "php-http/discovery": true - } - }, - "extra": { - "laravel": { - "providers": [ - "CodebarAg\\PostfinanceB2B\\PostfinanceB2BServiceProvider" - ], - "aliases": { - "PostfinanceB2B": "CodebarAg\\PostfinanceB2B\\Facades\\PostfinanceB2B" - } - } - }, - "minimum-stability": "dev", - "prefer-stable": true -} + "name": "codebar-ag/laravel-postfinance-b2b", + "description": "B2B Service integration for Laravel", + "keywords": [ + "postfinance", + "b2b", + "laravel", + "codebar-ag", + "laravel-postfinance-b2b" + ], + "homepage": "https://github.com/codebar-ag/laravel-postfinance-b2b", + "license": "MIT", + "authors": [ + { + "name": "Sebastian Bürgin", + "email": "sebastian.buergin@codebar.ch", + "homepage": "https://www.codebar.ch", + "role": "Developer" + } + ], + "require": { + "php": ">=8.2", + "ext-soap": "*", + "ext-xsl": "*", + "guzzlehttp/guzzle": "^7.8", + "illuminate/contracts": "^11.0", + "monolog/monolog": "^3.5", + "nyholm/psr7": "^1.8", + "php-http/logger-plugin": "^1.3", + "php-soap/psr18-wsse-middleware": "^2.3", + "phpro/soap-client": "^3.1", + "spatie/laravel-package-tools": "^1.16", + "symfony/http-client": "^6.4" + }, + "require-dev": { + "laravel/pint": "^1.14", + "nunomaduro/collision": "^8.1", + "larastan/larastan": "^2.9", + "orchestra/testbench": "^9.1", + "pestphp/pest": "^2.0", + "pestphp/pest-plugin-laravel": "^2.3", + "phpstan/extension-installer": "^1.3", + "phpstan/phpstan-deprecation-rules": "^1.1", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^10.5", + "spatie/laravel-ray": "^1.35" + }, + "autoload": { + "psr-4": { + "CodebarAg\\PostfinanceB2B\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "CodebarAg\\PostfinanceB2B\\Tests\\": "tests" + } + }, + "scripts": { + "analyse": "vendor/bin/phpstan analyse", + "test": "vendor/bin/pest", + "test-coverage": "vendor/bin/pest --coverage", + "format": "vendor/bin/pint" + }, + "config": { + "sort-packages": true, + "allow-plugins": { + "composer/package-versions-deprecated": false, + "pestphp/pest-plugin": true, + "phpstan/extension-installer": true, + "php-http/discovery": true + } + }, + "extra": { + "laravel": { + "providers": [ + "CodebarAg\\PostfinanceB2B\\PostfinanceB2BServiceProvider" + ], + "aliases": { + "PostfinanceB2B": "CodebarAg\\PostfinanceB2B\\Facades\\PostfinanceB2B" + } + } + }, + "minimum-stability": "dev", + "prefer-stable": true +} \ No newline at end of file