Skip to content

Commit 3b1f5f1

Browse files
authored
Merge pull request #30 from chadicus/master
Update build process
2 parents 387139e + 26fd450 commit 3b1f5f1

6 files changed

Lines changed: 33 additions & 48 deletions

File tree

.coveralls.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/php.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: PHP Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Install PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php-versions }}
22+
- name: Validate composer.json and composer.lock
23+
run: composer validate
24+
- name: Install dependencies
25+
run: composer install --prefer-dist --no-progress
26+
- name: Run PHPCS
27+
run: composer run-script lint
28+
- name: Run PHPUnit
29+
run: composer run-script test

.scrutinizer.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# SubjectivePHP\Util\Exception
22

3-
[![Build Status](https://travis-ci.org/subjective-php/util-exceptions.svg?branch=master)](https://travis-ci.org/subjective-php/util-exceptions)
4-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/subjective-php/util-exceptions/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/subjective-php/util-exceptions/?branch=master)
5-
[![Coverage Status](https://coveralls.io/repos/github/subjective-php/util-exceptions/badge.svg?branch=master)](https://coveralls.io/github/subjective-php/util-exceptions?branch=master)
6-
73
[![Latest Stable Version](https://poser.pugx.org/subjective-php/util-exceptions/v/stable)](https://packagist.org/packages/subjective-php/util-exceptions)
84
[![Latest Unstable Version](https://poser.pugx.org/subjective-php/util-exceptions/v/unstable)](https://packagist.org/packages/subjective-php/util-exceptions)
95
[![License](https://poser.pugx.org/subjective-php/util-exceptions/license)](https://packagist.org/packages/subjective-php/util-exceptions)

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"php": "^7.0"
1111
},
1212
"require-dev": {
13-
"php-coveralls/php-coveralls": "^2.1",
1413
"phpunit/phpunit": "^6.0",
1514
"squizlabs/php_codesniffer": "^3.3",
1615
"symfony/yaml": ">=2.0.5"
@@ -20,5 +19,9 @@
2019
},
2120
"autoload-dev": {
2221
"psr-4": { "SubjectivePHPTest\\Util\\": "tests/" }
22+
},
23+
"scripts": {
24+
"lint": "vendor/bin/phpcs",
25+
"test": "vendor/bin/phpunit"
2326
}
2427
}

0 commit comments

Comments
 (0)