Skip to content

Commit 37eb56d

Browse files
authored
Merge pull request #11 from rodolfoberrios/master
Upgrades to PHP >= 7.2 + Migrates to GitHub actions
2 parents ca883ff + 4fcee4a commit 37eb56d

File tree

3 files changed

+47
-14
lines changed

3 files changed

+47
-14
lines changed

.github/workflows/CI.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "testing"
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
tests:
11+
name: Tests
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
php:
17+
- 7.2
18+
- 7.3
19+
- 7.4
20+
composer-args: [ "" ]
21+
include:
22+
- php: 8.0
23+
composer-args: --ignore-platform-reqs
24+
fail-fast: false
25+
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
30+
- name: Install PHP
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: ${{ matrix.php }}
34+
35+
- name: Cache PHP dependencies
36+
uses: actions/cache@v2
37+
with:
38+
path: vendor
39+
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
40+
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer-
41+
42+
- name: Install dependencies
43+
run: composer install --prefer-dist --no-progress --no-suggest ${{ matrix.composer-args }}
44+
45+
- name: Tests
46+
run: composer test

.travis.yml

-13
This file was deleted.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"issues": "https://github.com/php-gettext/PHP-Scanner/issues"
1919
},
2020
"require": {
21-
"php": "^7.2",
21+
"php": ">=7.2",
2222
"nikic/php-parser": "^4.2",
2323
"gettext/gettext": "^5.5.0"
2424
},

0 commit comments

Comments
 (0)