Skip to content

Commit 5cd52a6

Browse files
committed
Switch CI setup from travisci to github actions
1 parent 25f9206 commit 5cd52a6

File tree

2 files changed

+53
-36
lines changed

2 files changed

+53
-36
lines changed

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on:
4+
[push, pull_request]
5+
6+
jobs:
7+
test:
8+
name: Test on ${{ matrix.php-versions }} PHP
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
php-versions: ['7.1', '7.2', '7.3', '7.4']
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php-versions }}
22+
coverage: xdebug
23+
24+
- name: Install Composer Dependencies
25+
uses: ramsey/composer-install@v1
26+
27+
- name: Run phpunit
28+
run: vendor/bin/phpunit --verbose --coverage-text
29+
30+
roave_bc_check:
31+
name: Roave BC Check
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v2
35+
36+
- name: Roave BC Check
37+
uses: docker://nyholm/roave-bc-check-ga
38+
39+
phpstan:
40+
runs-on: ubuntu-latest
41+
42+
steps:
43+
- uses: actions/checkout@v2
44+
45+
- uses: shivammathur/setup-php@v2
46+
with:
47+
php-version: 7.1
48+
49+
- name: Install Composer Dependencies
50+
uses: ramsey/composer-install@v1
51+
52+
- name: Run phpstan
53+
run: vendor/bin/phpstan analyse --no-progress

.travis.yml

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

0 commit comments

Comments
 (0)