Added support for 'billing/pending-charges' Endpoint (Non-paginated Object List) #215
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHP Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: PHP Versions | |
run: ls /etc/php && ls /usr/bin | grep php | |
- name: List composer packages | |
if: ${{ steps.composer-cache.outputs.cache-hit == 'true' }} | |
run: composer show | |
- name: Validate composer.json and composer.lock | |
if: ${{ steps.composer-cache.outputs.cache-hit != 'true' }} | |
run: composer validate --strict | |
- name: Install dependencies | |
if: ${{ steps.composer-cache.outputs.cache-hit != 'true' }} | |
run: composer install --prefer-dist --no-progress | |
tests: | |
runs-on: ubuntu-20.04 | |
needs: build | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
id: composer-cache | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: PHP Lint | |
run: composer lint | |
- name: Run 8.2 Test Suite | |
run: php8.2 vendor/bin/phpunit --no-coverage | |
- name: Run 8.1 Test Suite | |
run: php8.1 vendor/bin/phpunit --no-coverage | |
- name: Run 8.0 Test Suite | |
run: php8.0 vendor/bin/phpunit --no-coverage |