Skip to content

Commit

Permalink
Merge pull request #68 from DavidePastore/3.0
Browse files Browse the repository at this point in the history
Move changes from 3.0 to 4.0
  • Loading branch information
DavidePastore authored Dec 15, 2022
2 parents b6ef844 + de3d832 commit 54fc21a
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 2,564 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Continuous Integration

on: [push, pull_request]

jobs:
quality:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

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

- name: Check PHP Version
run: php -v

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

- name: PHP Unit tests
run: |
vendor/bin/phpunit --testsuite travis-ci
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
- name: Upload code coverage data
run: php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
composer.phar
vendor/
composer.lock

# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
Expand Down
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Slim Framework Validation

[![Latest version][ico-version]][link-packagist]
[![Build Status][ico-travis]][link-travis]
[![Build Status][ico-github-actions]][link-github-actions]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]
Expand Down Expand Up @@ -340,14 +340,14 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
[respect-validation]: https://github.com/Respect/Validation
[custom-messages]: https://respect-validation.readthedocs.io/en/1.1/feature-guide/#custom-messages
[ico-version]: https://img.shields.io/packagist/v/DavidePastore/Slim-Validation.svg?style=flat-square
[ico-travis]: https://travis-ci.org/DavidePastore/Slim-Validation.svg?branch=master
[ico-github-actions]: https://github.com/DavidePastore/Slim-Validation/workflows/Continuous%20Integration/badge.svg?branch=master
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/DavidePastore/Slim-Validation.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/davidepastore/Slim-Validation.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/davidepastore/slim-validation.svg?style=flat-square
[ico-styleci]: https://styleci.io/repos/48914054/shield

[link-packagist]: https://packagist.org/packages/davidepastore/slim-validation
[link-travis]: https://travis-ci.org/DavidePastore/Slim-Validation
[link-github-actions]: https://github.com/DavidePastore/Slim-Validation/actions?query=workflow%3A%22Continuous+Integration%22
[link-scrutinizer]: https://scrutinizer-ci.com/g/DavidePastore/Slim-Validation/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/DavidePastore/Slim-Validation
[link-downloads]: https://packagist.org/packages/davidepastore/slim-validation
Expand Down
7 changes: 1 addition & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"require-dev": {
"slim/slim": "~3.0",
"phpunit/phpunit": "^4.0",
"scrutinizer/ocular": "~1.1"
"scrutinizer/ocular": "1.5.*"
},
"autoload": {
"psr-4": {
Expand All @@ -29,10 +29,5 @@
"psr-4": {
"DavidePastore\\Slim\\Validation\\Tests\\": "tests"
}
},
"config": {
"platform": {
"php": "5.5"
}
}
}
Loading

0 comments on commit 54fc21a

Please sign in to comment.