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
20 changes: 18 additions & 2 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Unit Tests

on:
push:
branches:
- main
pull_request:
workflow_dispatch:
schedule:
Expand Down Expand Up @@ -42,5 +45,18 @@ jobs:
- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: Execute tests
run: phpunit
- if: matrix.os == 'ubuntu-latest' && matrix.stability == 'prefer-stable'
name: Execute tests with coverage
run: vendor/bin/phpunit --coverage-clover build/reports/clover.xml

- if: matrix.os != 'ubuntu-latest' || matrix.stability != 'prefer-stable'
name: Execute tests
run: vendor/bin/phpunit --coverage-clover build/reports/clover.xml

# Only upload coverage once.
- if: matrix.os == 'ubuntu-latest' && matrix.stability == 'prefer-stable'
name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
file: build/reports/clover.xml
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Rest Client
[![Coverage Status](https://coveralls.io/repos/github/REST-PHP/Client/badge.svg?branch=main)](https://coveralls.io/github/REST-PHP/Client?branch=main)

This library is a lightweight, flexible PHP client for making REST API requests. It simplifies HTTP request handling by offering a builder-pattern interface for constructing requests and converting responses. This client supports all common HTTP methods and adheres to PSR standards, ensuring compatibility with existing PHP libraries and frameworks.

## Installation
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"friendsofphp/php-cs-fixer": "dev-master",
"nyholm/psr7": "^1.8@dev",
"phpstan/phpstan": "2.0.x-dev",
"phpunit/phpunit": "^11.4"
"phpunit/phpunit": "^11.4.4"
},
"repositories": [
{
Expand Down
Loading