Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
StanBarrows committed Mar 29, 2024
2 parents 32d2a17 + 57c56d2 commit 98f24b8
Show file tree
Hide file tree
Showing 6 changed files with 157 additions and 108 deletions.
51 changes: 51 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 0 additions & 8 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -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
24 changes: 9 additions & 15 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down Expand Up @@ -44,24 +45,17 @@ 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
with:
name: Store report
retention-days: 1
path: |
./reports
./reports
1 change: 1 addition & 0 deletions .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -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}}
169 changes: 84 additions & 85 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"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": "[email protected]",
"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
}

0 comments on commit 98f24b8

Please sign in to comment.