Skip to content

Commit

Permalink
Merge pull request #23 from baileyherbert/add-guzzle-7
Browse files Browse the repository at this point in the history
Relax guzzle version constraint
  • Loading branch information
baileyherbert committed Mar 15, 2024
2 parents bdad1cf + 41d1388 commit b642225
Show file tree
Hide file tree
Showing 14 changed files with 1,998 additions and 1,175 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: test

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
versions: [
{ phpunit: '5.7.27', php: '5.6', composer: '2.2' },
{ phpunit: '9.5.28', php: '8.2', composer: 'latest' }
]

name: php-${{ matrix.versions.php }}
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Install php
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.versions.php }}
extensions: mbstring, intl, pdo, pdo_mysql, xml

- name: Install dependencies
uses: php-actions/composer@v6
with:
version: ${{ matrix.versions.composer }}
php_version: ${{ matrix.versions.php }}
args: --ignore-platform-reqs

- name: Fix permissions
run: sudo chown $(whoami) -R ./vendor

- name: Print php versions
run: |
echo "PHP: $(php -v | head -n 1)"
echo "Composer: $(composer --version)"
- name: Print phpunit version
run: ./vendor/bin/simple-phpunit --version
env:
SYMFONY_PHPUNIT_VERSION: ${{ matrix.versions.phpunit }}

- name: Run tests
run: ./vendor/bin/simple-phpunit
env:
SYMFONY_PHPUNIT_VERSION: ${{ matrix.versions.phpunit }}
ENVATO_PERSONAL_TOKEN: ${{ secrets.ENVATO_PERSONAL_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ $RECYCLE.BIN/
*.msi
*.msm
*.msp
*.lnk
*.lnk
/.phpunit.result*
14 changes: 12 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
],
"require": {
"php": ">=5.5",
"guzzlehttp/guzzle": "^6.5.5"
"guzzlehttp/guzzle": "^6.0 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8 || ^5.7 || ^6.5"
"symfony/phpunit-bridge": "^5.2.12"
},
"autoload": {
"psr-4": {
Expand All @@ -29,5 +29,15 @@
"psr-4": {
"Herbert\\Tests\\Envato\\": "tests/"
}
},
"archive": {
"exclude": [
"/stubs"
]
},
"config": {
"platform": {
"php": "5.6.0"
}
}
}
Loading

0 comments on commit b642225

Please sign in to comment.