Skip to content

feature: add github actions config files #14

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jan 23, 2023
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
30 changes: 30 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: run-tests

on: [ push, pull_request ]

jobs:
test:
runs-on: ubuntu-latest
name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
strategy:
matrix:
php: [7.0, 7.1]
dependency-version: [prefer-lowest, prefer-stable]

steps:
- name: Checkout code
uses: actions/checkout@v2

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

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-interaction

- name: Run test suite
run: composer test
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ Install via composer:

## Version Compatibility

| PHP | PHP Dump Logger |
|:---------------|:----------------|
| 7.0.0 upper | 1.x |
| PHP | PHP Dump Logger |
|:-------------|:----------------|
| ^7.0 && ^7.1 | 1.x |

## Basic Usage

Expand Down Expand Up @@ -482,7 +482,7 @@ composer testfix
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.


[ico-php]: https://img.shields.io/badge/php-7.0-8892bf?style=flat-square&logo=php
[ico-php]: https://img.shields.io/badge/php-7.0|7.1-8892bf?style=flat-square&logo=php
[ico-downloads]: https://poser.pugx.org/salibhdr/php-dump-logger/downloads
[ico-today-downloads]: https://img.shields.io/packagist/dd/salibhdr/php-dump-logger.svg?style=flat-square
[ico-license]: https://poser.pugx.org/salibhdr/php-dump-logger/v/unstable
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
}
],
"require": {
"php": ">=7.0",
"symfony/var-dumper": ">=3.0"
"php": "^7.0 | ^7.1",
"symfony/var-dumper": "^3"
},
"require-dev": {
"phpunit/phpunit": ">=6.5",
"mockery/mockery": ">=1.3",
"friendsofphp/php-cs-fixer": "^2.19"
"phpunit/phpunit": "^6",
"mockery/mockery": "^1",
"friendsofphp/php-cs-fixer": "^2"
},
"autoload": {
"psr-4": {
Expand Down
Loading