Skip to content

Commit 9ca290b

Browse files
authored
Merge pull request #52 from DiegoPino/ISSUE-50
ISSUE-50: Create Github Actions based ci.yml (#1) Tests against lower and higher PHP versions we support (theory of feature inclussion, if it works in 7.1 and 7.4 means it works ini 7.2 and 7.3 because those either exclude 7.1 or include 7.4)
2 parents 66bce8d + eec39b0 commit 9ca290b

6 files changed

Lines changed: 62 additions & 24 deletions

File tree

.github/issue_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Please replace this line with full information about your idea or problem. If it
44

55
---
66

7-
Please preserve this line to notify @OriHoch (lead of this repository)
7+
Please preserve this line to notify @DiegoPino (lead of this repository)

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Please replace this line with full information about your pull request. Make sur
44

55
---
66

7-
Please preserve this line to notify @OriHoch (lead of this repository)
7+
Please preserve this line to notify @DiegoPino (lead of this repository)

.github/workflows/ci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.operating-system }}
10+
strategy:
11+
matrix:
12+
operating-system: [ubuntu-latest]
13+
php-versions: ['7.1', '7.4']
14+
15+
name: frictionlessdata/datapackage-php PHP ${{ matrix.php-versions }} test on ${{ matrix.operating-system }}
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Cache Composer dependencies
21+
uses: actions/cache@v2
22+
with:
23+
path: /tmp/composer-cache
24+
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
25+
26+
- uses: php-actions/composer@v6
27+
with:
28+
php_version: ${{ matrix.php-versions }}
29+
php_extensions: zip
30+
version: 2
31+
32+
- name: Validate composer.json & composer.lock for PHP ${{ matrix.php-versions }}
33+
uses: php-actions/composer@v6
34+
with:
35+
php_version: ${{ matrix.php-versions }}
36+
php_extensions: zip
37+
version: 2
38+
command: validate --strict
39+
40+
- name: Run Code Style Check for PHP ${{ matrix.php-versions }}
41+
uses: php-actions/composer@v6
42+
with:
43+
php_version: ${{ matrix.php-versions }}
44+
php_extensions: zip
45+
version: 2
46+
dev: yes
47+
command: style-check
48+
49+
- name: Run Tests for PHP ${{ matrix.php-versions }}
50+
uses: php-actions/composer@v6
51+
with:
52+
php_version: ${{ matrix.php-versions }}
53+
php_extensions: zip
54+
dev: yes
55+
command: test
56+
57+
58+

.install_cs_fixer.sh

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

.travis.yml

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Data Package
22

3-
[![Travis](https://travis-ci.org/frictionlessdata/datapackage-php.svg?branch=master)](https://travis-ci.org/frictionlessdata/datapackage-php)
3+
[![Build](https://github.com/frictionlessdata/datapackage-php/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/frictionlessdata/datapackage-php/actions/workflows/ci.yml)
44
[![Coveralls](http://img.shields.io/coveralls/frictionlessdata/datapackage-php.svg?branch=master)](https://coveralls.io/r/frictionlessdata/datapackage-php?branch=master)
55
[![Scrutinizer-ci](https://scrutinizer-ci.com/g/frictionlessdata/datapackage-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/frictionlessdata/datapackage-php/)
66
[![Packagist](https://img.shields.io/packagist/dm/frictionlessdata/datapackage.svg)](https://packagist.org/packages/frictionlessdata/datapackage)
@@ -18,7 +18,7 @@ A utility library for working with [Data Package](https://specs.frictionlessdata
1818
composer require frictionlessdata/datapackage
1919
```
2020

21-
Optionally, to create zip files you will need the PHP zip extension. On ubuntu it can be enabled with `sudo apt-get install php-zip`
21+
Optionally, to create zip files you will need the PHP zip extension. On Ubuntu it can be enabled with `sudo apt-get install php-zip`
2222

2323
### Package
2424

0 commit comments

Comments
 (0)