Skip to content

Commit 48f7591

Browse files
committed
Replace Travis with GitHub actions
1 parent 5cfae37 commit 48f7591

File tree

2 files changed

+31
-23
lines changed

2 files changed

+31
-23
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
- pull_request
3+
- push
4+
5+
name: CI
6+
7+
jobs:
8+
run:
9+
name: Tests
10+
11+
strategy:
12+
matrix:
13+
operating-system: [ubuntu-latest]
14+
php-versions: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
15+
16+
runs-on: ${{ matrix.operating-system }}
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
22+
- name: Install PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: ${{ matrix.php-versions }}
26+
27+
- name: Install dependencies with composer
28+
run: composer install
29+
30+
- name: Run tests
31+
run: ./vendor/bin/phpunit

.travis.yml

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

0 commit comments

Comments
 (0)