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
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches: [master]
pull_request:

jobs:
test:
name: PHP ${{ matrix.php }} (${{ matrix.dependencies }})
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: ['7.4']
dependencies: [highest, lowest]

steps:
- uses: actions/checkout@v6

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

- name: Install dependencies
uses: ramsey/composer-install@v4
with:
dependency-versions: ${{ matrix.dependencies }}

- name: Run phpcs
run: vendor/bin/phpcs -p --warning-severity=0 src/ tests/

- name: Run phpunit
run: vendor/bin/phpunit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/vendor/
/tests/report/
/.phpunit.result.cache

.idea
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SHELL = /bin/sh

DOCKER = $(shell which docker)
PHP_VER := 7.2
PHP_VER := 7.4
IMAGE := graze/php-alpine:${PHP_VER}-test
VOLUME := /srv
DOCKER_RUN_BASE := ${DOCKER} run --rm -t -v $$(pwd):${VOLUME} -w ${VOLUME}
Expand Down Expand Up @@ -62,10 +62,7 @@ test-matrix-lowest: ## Test all version, with the lowest version
${MAKE} build-update

test-matrix: ## Run the unit tests against multiple targets.
${MAKE} PHP_VER="5.6" build-update test
${MAKE} PHP_VER="7.0" build-update test
${MAKE} PHP_VER="7.1" build-update test
${MAKE} PHP_VER="7.2" build-update test
${MAKE} PHP_VER="7.4" build-update test

test-coverage: ## Run all tests and output coverage to the console.
${DOCKER_RUN} phpdbg7 -qrr vendor/bin/phpunit --coverage-text
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@

[![Latest Version on Packagist](https://img.shields.io/packagist/v/graze/console-diff-renderer.svg?style=flat-square)](https://packagist.org/packages/graze/console-diff-renderer)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://img.shields.io/travis/graze/console-diff-renderer/master.svg?style=flat-square)](https://travis-ci.org/graze/console-diff-renderer)
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/graze/console-diff-renderer.svg?style=flat-square)](https://scrutinizer-ci.com/g/graze/console-diff-renderer/code-structure)
[![Quality Score](https://img.shields.io/scrutinizer/g/graze/console-diff-renderer.svg?style=flat-square)](https://scrutinizer-ci.com/g/graze/console-diff-renderer)
[![Build Status](https://img.shields.io/github/actions/workflow/status/graze/console-diff-renderer/ci.yml?branch=master&style=flat-square)](https://github.com/graze/console-diff-renderer/actions/workflows/ci.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/graze/console-diff-renderer.svg?style=flat-square)](https://packagist.org/packages/graze/console-diff-renderer)

Only render things that have changed to the console.

[![asciicast](https://asciinema.org/a/9233umuuyo8gi0gifmnudjz26.png)](https://asciinema.org/a/9233umuuyo8gi0gifmnudjz26)

## Usage

```php
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"config": {
"platform": {
"php": "7.2"
"php": "7.4"
}
},
"homepage": "https://github.com/graze/console-diff-renderer",
Expand All @@ -26,14 +26,14 @@
}
],
"require": {
"php": "^5.6 | ^7.0",
"symfony/console": "^2.8 | ^3.2 | ^4.0 | ^5.0"
"php": "^7.4",
"symfony/console": "^3.4 | ^4.0 | ^5.0"
},
"require-dev": {
"phpunit/phpunit": "^8.5.52",
"squizlabs/php_codesniffer": "^3",
"graze/standards": "^2.0",
"mockery/mockery": "^1"
"phpunit/phpunit": "^9.3",
"squizlabs/php_codesniffer": "^4.0",
"graze/standards": "^3.0",
"mockery/mockery": "^1.3"
},
"autoload": {
"psr-4": {
Expand Down
Loading