Skip to content

Commit c7be923

Browse files
author
Sebastian Bürgin-Fix
authored
Feature laravel13 (#216)
* Fixed #197 * Resolved #189, updated Docs and Tests for Enums * Removed phpunit cache * Resolved #188 * wip * Minor code improvements * Improved TransferDocument Request * Security updates * Optimized Repository Skeleton * chore: sync Laravel Pint workflow from template * chore: sync CONTRIBUTING.md from template * chore: sync security policy from template * chore: sync PHPStan workflow from template * chore: sync Laravel Pint workflow from template * chore: sync Dependabot config and workflows from template * chore: sync Laravel Pint workflow from template * chore: sync PHPStan workflow from template * chore: sync release workflow from template * chore: sync CONTRIBUTING.md from template * chore: sync security policy from template * Optimized Repository Skeleton * Optimized Repository Skeleton * chore: sync dependency audit workflows from template * chore: sync GitHub issue templates * chore: sync Laravel Pint workflow from template * chore: sync PHPStan workflow from template * chore: sync dependency audit workflows from template * chore: sync Dependabot config and workflows from template * Laravel 13 * #major updated to laravel 13 * wip * Improved Quality * Updated readme.md * Fixed Class #major
1 parent 979c3c6 commit c7be923

209 files changed

Lines changed: 8588 additions & 689 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# DocuWare REST API (maps to Postman environment "DocuWare")
2+
#
3+
# Postman Laravel / config
4+
# ---------------- --------------------------------------------
5+
# ServerUrl DOCUWARE_URL (scheme + host, no trailing path)
6+
# Platform DOCUWARE_PLATFORM_PATH (default: DocuWare/Platform)
7+
# Username DOCUWARE_USERNAME
8+
# Password DOCUWARE_PASSWORD
9+
# OrgId DOCUWARE_TESTS_ORG_ID (optional; or DOCUWARE_TESTS_ORGANIZATION_ID)
10+
# FileCabinetId DOCUWARE_TESTS_FILE_CABINET_ID
11+
# SearchDialogId DOCUWARE_TESTS_SEARCH_DIALOG_ID (optional; falls back to DOCUWARE_TESTS_DIALOG_ID in your app)
12+
# StoreDialogId DOCUWARE_TESTS_STORE_DIALOG_ID
13+
# DocumentId DOCUWARE_TESTS_DOCUMENT_ID
14+
# ClientID / ClientSecret — OAuth client; package uses DOCUWARE_CLIENT_ID + password grant by default
15+
16+
DOCUWARE_URL=
17+
DOCUWARE_PLATFORM_PATH=DocuWare/Platform
18+
DOCUWARE_USERNAME=
19+
DOCUWARE_PASSWORD=
20+
DOCUWARE_PASSPHRASE=
21+
DOCUWARE_CLIENT_ID=docuware.platform.net.client
22+
DOCUWARE_SCOPE=docuware.platform
23+
DOCUWARE_TIMEOUT=60
24+
DOCUWARE_CACHE_DRIVER=file
25+
DOCUWARE_CACHE_LIFETIME_IN_SECONDS=60
26+
27+
# PHPUnit / local live tests (see docs/postman-parity.md)
28+
DOCUWARE_TESTS_FILE_CABINET_ID=
29+
DOCUWARE_TESTS_DIALOG_ID=
30+
DOCUWARE_TESTS_BASKET_ID=
31+
DOCUWARE_TESTS_ORG_ID=
32+
DOCUWARE_TESTS_SEARCH_DIALOG_ID=
33+
DOCUWARE_TESTS_STORE_DIALOG_ID=
34+
DOCUWARE_TESTS_DOCUMENT_ID=
35+
DOCUWARE_TESTS_ORGANIZATION_ID=
36+
DOCUWARE_TESTS_GROUP_ID=
37+
DOCUWARE_TESTS_ROLE_ID=

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ We're sorry to hear you have a problem. Can you help us solve it by providing th
2929
attributes:
3030
label: PHP Version
3131
description: What version of PHP are you running? Please be as specific as possible
32-
placeholder: "8.4.0"
33-
value: "8.4.0"
32+
placeholder: "8.5.0"
33+
value: "8.5.0"
3434
validations:
3535
required: true
3636
- type: input
3737
id: laravel-version
3838
attributes:
3939
label: Laravel Version
4040
description: What version of Laravel are you running? Please be as specific as possible
41-
placeholder: "12.0.0"
42-
value: "12.0.0"
41+
placeholder: "13.0.0"
42+
value: "13.0.0"
4343
validations:
4444
required: true
4545
- type: dropdown

.github/workflows/composer-audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup PHP
2929
uses: shivammathur/setup-php@2.37.0
3030
with:
31-
php-version: '8.4'
31+
php-version: '8.5'
3232
coverage: none
3333

3434
- name: Resolve dependencies and audit

.github/workflows/dependabot-auto-merge.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ jobs:
99
dependabot:
1010
runs-on: ubuntu-latest
1111
if: ${{ github.actor == 'dependabot[bot]' }}
12+
env:
13+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
1214
steps:
1315

1416
- name: Dependabot metadata
1517
id: metadata
16-
uses: dependabot/fetch-metadata@v2.5.0
18+
uses: dependabot/fetch-metadata@v3.0.0
1719
with:
1820
github-token: "${{ secrets.GITHUB_TOKEN }}"
1921

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,17 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v6.0.2
1515

16-
- name: Fix PHP code style issues
17-
uses: aglipanci/laravel-pint-action@2.6
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@2.37.0
18+
with:
19+
php-version: '8.5'
20+
coverage: none
21+
22+
- name: Install composer dependencies
23+
uses: ramsey/composer-install@4.0.0
24+
25+
- name: Run Laravel Pint
26+
run: vendor/bin/pint
1827

1928
- name: Commit changes
2029
uses: stefanzweifel/git-auto-commit-action@v7.1.0

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Setup PHP
3333
uses: shivammathur/setup-php@2.37.0
3434
with:
35-
php-version: '8.4'
35+
php-version: '8.5'
3636
coverage: none
3737

3838
- name: Install composer dependencies

.github/workflows/run-tests.yml

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ jobs:
1414
max-parallel: 1
1515
matrix:
1616
os: [ ubuntu-latest ]
17-
php: [ 8.2, 8.3, 8.4 ]
18-
laravel: [ 12.* ]
17+
php: [ 8.3, 8.4, 8.5 ]
18+
laravel: [ 13.* ]
1919
stability: [ prefer-lowest, prefer-stable ]
2020

2121
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2222

2323
steps:
2424
- name: Checkout code
25-
uses: actions/checkout@v5
25+
uses: actions/checkout@v6
2626

2727
- name: Setup PHP
2828
uses: shivammathur/setup-php@v2
2929
with:
3030
php-version: ${{ matrix.php }}
3131
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
32-
coverage: none
32+
coverage: pcov
3333

3434
- name: Setup problem matchers
3535
run: |
@@ -41,20 +41,41 @@ jobs:
4141
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
4242
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4343
44-
- name: Execute tests
44+
- name: Copy PHPUnit configuration
4545
run: cp phpunit.xml.dist phpunit.xml
4646

47-
- name: Execute tests
48-
run: vendor/bin/pest
47+
- name: Verify Postman parity matrix
48+
run: composer postman:parity
49+
50+
# Default suite only (unit, feature, manual skips) — no live DocuWare required.
51+
- name: Run Pest tests (default suite)
52+
run: composer test
53+
54+
# One matrix cell hits the live API to limit tenant traffic and rate limits (sequential tests in-process).
55+
- name: Run DocuWare integration tests
56+
if: matrix.php == '8.3' && matrix.stability == 'prefer-stable'
4957
env:
5058
DOCUWARE_URL: ${{ secrets.DOCUWARE_URL }}
5159
DOCUWARE_USERNAME: ${{ secrets.DOCUWARE_USERNAME }}
5260
DOCUWARE_PASSWORD: ${{ secrets.DOCUWARE_PASSWORD }}
61+
DOCUWARE_PASSPHRASE: ${{ secrets.DOCUWARE_PASSPHRASE }}
5362
DOCUWARE_COOKIES: ${{ secrets.DOCUWARE_COOKIES }}
63+
DOCUWARE_TESTS_FILE_CABINET_ID: ${{ secrets.DOCUWARE_TESTS_FILE_CABINET_ID }}
64+
DOCUWARE_TESTS_DIALOG_ID: ${{ secrets.DOCUWARE_TESTS_DIALOG_ID }}
65+
DOCUWARE_TESTS_BASKET_ID: ${{ secrets.DOCUWARE_TESTS_BASKET_ID }}
66+
DOCUWARE_TESTS_ORGANIZATION_ID: ${{ secrets.DOCUWARE_TESTS_ORGANIZATION_ID }}
67+
DOCUWARE_TESTS_GROUP_ID: ${{ secrets.DOCUWARE_TESTS_GROUP_ID }}
68+
DOCUWARE_TESTS_ROLE_ID: ${{ secrets.DOCUWARE_TESTS_ROLE_ID }}
69+
run: |
70+
if [ -z "$DOCUWARE_URL" ] || [ -z "$DOCUWARE_USERNAME" ] || [ -z "$DOCUWARE_PASSWORD" ]; then
71+
echo "Skipping DocuWare integration (DOCUWARE_* secrets not configured)."
72+
exit 0
73+
fi
74+
composer test:live
5475
5576
- name: Store Log Artifacts
5677
if: failure()
57-
uses: actions/upload-artifact@v5
78+
uses: actions/upload-artifact@v6
5879
with:
5980
name: Store report artifacts
6081
path: ./vendor/orchestra/testbench-core/laravel/storage/logs

0 commit comments

Comments
 (0)