Skip to content

Commit 4f99fd1

Browse files
author
Sergiy Petrov
committed
migrate CI to GitHub Actions
get rid of travis test against php 8.0 and 8.1
1 parent d87472e commit 4f99fd1

2 files changed

Lines changed: 41 additions & 19 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: run-tests
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
fail-fast: true
11+
matrix:
12+
php: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1"]
13+
14+
name: php-${{ matrix.php }}
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
25+
- name: Validate composer.json and composer.lock
26+
run: composer validate --strict
27+
28+
- name: Cache Composer packages
29+
id: composer-cache
30+
uses: actions/cache@v2
31+
with:
32+
path: vendor
33+
key: ${{ matrix.php }}-php-${{ hashFiles('**/composer.lock') }}
34+
restore-keys: |
35+
${{ matrix.php }}-php-
36+
37+
- name: Install dependencies
38+
run: composer update --no-interaction --prefer-dist --no-progress
39+
40+
- name: Execute tests
41+
run: vendor/bin/phpunit --bootstrap vendor/autoload.php tests

.travis.yml

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

0 commit comments

Comments
 (0)