Skip to content

Commit

Permalink
update metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Vaughn committed Dec 17, 2020
1 parent bb0bc03 commit c10f4f4
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 28 deletions.
57 changes: 33 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,51 @@ name: build

on:
push:
branches: [ main ]
branches: [ main, 3.x ]
pull_request:
branches: [ main ]
branches: [ main, 3.x ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.2, 7.3, 7.4]
php-versions: [7.2, 7.3, 7.4]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Validate dependencies
run: composer validate
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Get dependency cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Validate dependencies
run: composer validate

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Get dependency cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Run static analysis
run: vendor/bin/phpstan analyse
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php-
- name: Run test suite
run: vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-clover=coverage.xml
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- uses: codecov/codecov-action@v1
- name: Run static analysis
run: vendor/bin/phpstan analyse

- name: Start http server
run: docker-compose up -d

- name: Run test suite
run: phpdbg -qrr vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-clover=coverage.xml
env:
HTTPBIN_BASEURI: http://localhost:8080

- uses: codecov/codecov-action@v1
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ This library is provided for and supported by the open source community. Support

## Requirements

* PHP 5.5, 5.6 (php5, 1.x)
* PHP 7.2+ (main, 2.x, 3.x)
* PHP 5.5, 5.6 (1.x)
* PHP 7.2, 7.3, 7.4 (main, 2.x, 3.x)

## Installation

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"issues": "https://github.com/mindtouch/mindtouch-http.php/issues"
},
"require": {
"php": ">=7.2.0",
"php": "^7.2.0",
"modethirteen/hyperplug": "^1.1.0",
"modethirteen/xarray": "^1.1.0",
"ext-fileinfo": "*",
"ext-json": "*",
"ext-curl": "*"
},
"require-dev": {
"phpstan/phpstan": "~0.12",
"phpstan/phpstan": "~0.12.0",
"phpunit/phpunit": "~7.4.3"
},
"autoload": {
Expand Down

0 comments on commit c10f4f4

Please sign in to comment.