Skip to content

Commit

Permalink
Merge pull request #32 from chrisryan/master
Browse files Browse the repository at this point in the history
Add Github workflow.
  • Loading branch information
chadicus committed May 18, 2023
2 parents 87e92a6 + bbdc44f commit 5cc352b
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 24 deletions.
3 changes: 0 additions & 3 deletions .coveralls.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PHP Composer

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run PHPCS
run: composer run-script lint
- name: Run PHPUnit
run: composer run-script test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ composer.lock
clover.xml
phpunit.xml
phpcs.xml
.phpunit.result.cache
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# SubjectivePHP\Csv

[![Build Status](https://travis-ci.org/subjective-php/csv.svg?branch=master)](https://travis-ci.org/subjective-php/csv)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/subjective-php/csv/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/subjective-php/csv/?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/subjective-php/csv/badge.svg?branch=master)](https://coveralls.io/github/subjective-php/csv?branch=master)

[![Latest Stable Version](https://poser.pugx.org/subjective-php/csv/v/stable)](https://packagist.org/packages/subjective-php/csv)
[![Latest Unstable Version](https://poser.pugx.org/subjective-php/csv/v/unstable)](https://packagist.org/packages/subjective-php/csv)
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"php": "^7.0"
},
"require-dev": {
"php-coveralls/php-coveralls": "^2.1",
"phpunit/phpunit": "^6.5",
"squizlabs/php_codesniffer": "^3.3"
},
Expand All @@ -19,5 +18,9 @@
},
"autoload-dev": {
"psr-4": { "SubjectivePHPTest\\Csv\\": "tests/" }
},
"scripts": {
"lint": "vendor/bin/phpcs",
"test": "vendor/bin/phpunit"
}
}

0 comments on commit 5cc352b

Please sign in to comment.