Skip to content

Commit a64a126

Browse files
committed
travis-ci.org is being super slow, so switch to github actions instead
1 parent cf5b091 commit a64a126

File tree

3 files changed

+41
-25
lines changed

3 files changed

+41
-25
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on: push
4+
5+
jobs:
6+
all:
7+
runs-on: ${{ matrix.operating-system }}
8+
strategy:
9+
matrix:
10+
operating-system:
11+
- ubuntu-latest
12+
# - windows-latest # Disabled - apparently checkouts have \r\n which breaks phpcs
13+
- macos-latest
14+
php-versions:
15+
- '7.1'
16+
- '7.2'
17+
- '7.3'
18+
- '7.4'
19+
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php-versions }}
28+
extensions: mbstring, intl
29+
ini-values: post_max_size=256M, short_open_tag=On
30+
coverage: xdebug
31+
tools: php-cs-fixer, phpunit:7
32+
33+
- name: Composer Install
34+
run: composer install --no-progress
35+
36+
- name: Code style checks
37+
run: ./vendor/bin/phpcs .
38+
39+
- name: Unit tests
40+
run: ./vendor/bin/phpunit

.travis.yml

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

phpcs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</rule>
66

77
<arg name="ignore" value="vendor/"/>
8+
<arg name="ignore" value="build/"/>
89
</ruleset>
910

1011

0 commit comments

Comments
 (0)