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
1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Auto detect text files and perform LF normalization
* text=auto

# Force text mode
*.php text diff=php
*.yml text
*.xml text

.gitattributes export-ignore
.gitignore export-ignore
.github/ export-ignore
.idea/ export-ignore
composer.lock export-ignore
phpunit.xml export-ignore
tests/ export-ignore
67 changes: 67 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: PHPUnit

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
include:
- php-version: '7.0'
phpunit-config: phpunit_pre73.xml

- php-version: '7.1'
phpunit-config: phpunit_pre73.xml

- php-version: '7.2'
phpunit-config: phpunit_pre73.xml

- php-version: '7.3'
phpunit-config: phpunit.xml

- php-version: '7.4'
phpunit-config: phpunit.xml

- php-version: '8.0'
phpunit-config: phpunit.xml

- php-version: '8.1'
phpunit-config: phpunit.xml

- php-version: '8.2'
phpunit-config: phpunit.xml

steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: Install dependencies with Composer
uses: ramsey/composer-install@v4
with:
dependency-versions: highest

- name: Create PHPUnit results directory
run: mkdir -p test-results/phpunit

- name: Run PHPUnit
run: vendor/bin/phpunit --configuration ${{ matrix.phpunit-config }} --log-junit test-results/phpunit/junit_${{ matrix.php-version }}.xml

- name: Capture logs
uses: actions/upload-artifact@v7
if: always()
with:
name: logs-${{ matrix.php-version }}
path: test-results/**/*
26 changes: 0 additions & 26 deletions .github/workflows/pipeline.yaml

This file was deleted.

9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/vendor/
.idea
/vendor
/.idea
/.phpunit.result.cache

# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
composer.lock
60 changes: 30 additions & 30 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"name": "digitickets/generic-api-client",
"description": "Interface for making request to an API.",
"license": "MIT",
"type": "library",
"authors": [
{
"name": "DigiTickets",
"email": "developers@digitickets.co.uk"
}
],
"autoload": {
"psr-4": {
"GenericApiClient\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"GenericApiClientTests\\": "tests/"
}
},
"require": {
"php": "^7.0.0|^8.0.0",
"guzzlehttp/guzzle": "^6.2|^7.0",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^6"
},
"scripts": {
"test": "php -d 'error_reporting=E_ALL & ~E_DEPRECATED' vendor/bin/phpunit tests --colors"
"name": "digitickets/generic-api-client",
"description": "Interface for making request to an API.",
"license": "MIT",
"type": "library",
"authors": [
{
"name": "DigiTickets",
"email": "developers@digitickets.co.uk"
}
],
"autoload": {
"psr-4": {
"GenericApiClient\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"GenericApiClientTests\\": "tests/"
}
},
"require": {
"php": "^7.0.0|^8.0.0",
"guzzlehttp/guzzle": "^6.2|^7.0",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "*"
},
"scripts": {
"test": "php -d 'error_reporting=E_ALL & ~E_DEPRECATED' vendor/bin/phpunit tests --colors"
}
}
Loading