Skip to content

Commit 6032db3

Browse files
authored
Merge pull request #8 from tvdijen/patch-1
Support installation on PHP 8.x
2 parents 723227f + 876d7ad commit 6032db3

File tree

3 files changed

+45
-13
lines changed

3 files changed

+45
-13
lines changed

.github/workflows/test.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
- 8.0
21+
- 8.1
22+
fail-fast: false
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v2
27+
28+
- name: Install PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php }}
32+
33+
- name: Cache PHP dependencies
34+
uses: actions/cache@v2
35+
with:
36+
path: vendor
37+
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
38+
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer-
39+
40+
- name: Install dependencies
41+
run: composer install --prefer-dist --no-progress --no-suggest
42+
43+
- name: Tests
44+
run: composer test

.travis.yml

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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
],
1515
"require": {
16-
"php": "^7.2",
16+
"php": "^7.2 || ^8.0",
1717
"gettext/gettext": "v5.5.0"
1818
},
1919
"require-dev": {

0 commit comments

Comments
 (0)