Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 14 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
on: [push]
name: tests
on: [push, pull_request]

jobs:
build-and-test:
name: Build and test
phpunit:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1', '8.2', '8.3', '8.4']
steps:
- name: checkout
uses: actions/checkout@v3

- name: install composer dependencies
uses: php-actions/composer@v6
with:
php_version: 7.4

# - name: php-cs-fixer static analysis
# uses: docker://oskarstark/php-cs-fixer-ga
# with:
# args: --using-cache=no --diff --dry-run -v

- name: PHPUnit Tests
uses: php-actions/phpunit@v3
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
version: 5
php_version: 7.1
bootstrap: vendor/autoload.php
configuration: phpunit.xml.dist
args: --coverage-text

php-version: ${{ matrix.php }}
coverage: none
extensions: curl, mbstring, dom, simplexml
- run: composer install --no-interaction --prefer-dist
- run: vendor/bin/phpunit
32 changes: 0 additions & 32 deletions .php-cs-fixer.dist.php

This file was deleted.

19 changes: 0 additions & 19 deletions .scrutinizer.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

83 changes: 0 additions & 83 deletions CHANGELOG.md

This file was deleted.

27 changes: 14 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "zangra/bpost-api-library",
"version": "4.5.7",
"type": "library",
"description": "bpost API library is a PHP library to communicate with the bpost API.",
"homepage": "https://github.com/Antidot-be/bpost-api-library",
Expand Down Expand Up @@ -28,24 +27,26 @@
}
],
"require": {
"php": ">=5.3.0",
"php": "^8.1 || ^8.4",
"psr/log": "^1.0 || ^2.0 || ^3.0",
"ext-curl": "*",
"ext-mbstring": "*",
"psr/log": "*",
"ext-dom": "*",
"ext-SimpleXML": "*"
"ext-simplexml": "*"
},
"require-dev": {
"phpunit/phpunit": "^5",
"friendsofphp/php-cs-fixer": "=3.9.5"
"phpunit/phpunit": "^11.2"
},
"autoload": {
"psr-4": {
"Bpost\\BpostApiClient\\": "src/",
"Bpost\\BpostApiClient\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
},
"classmap": [
"src/tijsverkoyen_classes.php"
]
}
}
}
},

"config": { "sort-packages": true }
}
Loading
Loading