Skip to content

Commit 24d2a17

Browse files
committed
Switch Travis CI to Github actions
1 parent 0db6f87 commit 24d2a17

File tree

2 files changed

+44
-17
lines changed

2 files changed

+44
-17
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
on:
2+
- pull_request
3+
- push
4+
5+
name: CI
6+
7+
jobs:
8+
tests:
9+
name: Tests
10+
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
matrix:
15+
os:
16+
- ubuntu-latest
17+
- windows-latest
18+
19+
php:
20+
- "7.3"
21+
- "7.4"
22+
- "8.0"
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v2
27+
28+
- name: Install PHP with extensions
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php }}
32+
extensions: dom, json, mbstring
33+
ini-values: assert.exception=1, zend.assertions=1
34+
35+
- name: Install composer dependencies ignoring platform requirements
36+
if: matrix.php == '8.0'
37+
run: composer install --no-ansi --no-interaction --no-progress --no-suggest --ignore-platform-reqs
38+
39+
- name: Install composer dependencies
40+
if: matrix.php != '8.0'
41+
run: composer update --no-ansi --no-interaction --no-progress --no-suggest
42+
43+
- name: Run tests with phpunit
44+
run: vendor/bin/phpunit --coverage-clover=coverage.xml

.travis.yml

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

0 commit comments

Comments
 (0)