Skip to content

Commit d851438

Browse files
These changes will close and include PR jenssegers#90
1 parent 2e748bd commit d851438

3 files changed

Lines changed: 39 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests with PHPUnit
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Validate composer.json and composer.lock
18+
run: composer validate --strict
19+
20+
- name: Cache Composer packages
21+
id: composer-cache
22+
uses: actions/cache@v2
23+
with:
24+
path: vendor
25+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-php-
28+
- name: Install dependencies
29+
run: composer install --prefer-dist --no-progress
30+
31+
- name: Run test suite
32+
run: composer run-script test

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
language: php
22

33
php:
4-
- 7.1
5-
- 7.2
64
- 7.3
5+
- 7.4
6+
- 8.0
77

88
sudo: false
99

10-
dist: trusty
10+
dist: bionic
1111

1212
before_script:
1313
- composer self-update
@@ -18,4 +18,4 @@ script:
1818
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
1919

2020
after_script:
21-
- vendor/bin/php-coveralls -v
21+
- vendor/bin/php-coveralls -v

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,8 @@
3838
"psr-4": {
3939
"Proxy\\": "tests"
4040
}
41+
},
42+
"scripts": {
43+
"test": "vendor/bin/phpunit"
4144
}
4245
}

0 commit comments

Comments
 (0)