Skip to content

Commit e7a9764

Browse files
committed
introduces Github Action Workflow
1 parent 912de9e commit e7a9764

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

.github/workflows/testlistener.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: TestListener
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
php_tests:
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os:
17+
- ubuntu-18.04
18+
php:
19+
- 7.2
20+
- 7.3
21+
- 7.4
22+
- 8.0
23+
include:
24+
-
25+
os: ubuntu-18.04
26+
php: 7.2
27+
tools: phpstan, phpunit
28+
-
29+
os: ubuntu-18.04
30+
php: 7.3
31+
tools: phpstan, phpunit
32+
-
33+
os: ubuntu-18.04
34+
php: 7.4
35+
tools: phpstan, phpunit
36+
-
37+
os: ubuntu-18.04
38+
php: 8.0
39+
tools: phpstan, phpunit
40+
41+
name: "Test with PHP ${{ matrix.php }} on ${{ matrix.os }}"
42+
43+
steps:
44+
-
45+
name: Checkout
46+
uses: actions/checkout@v2
47+
48+
-
49+
name: Setup PHP
50+
uses: shivammathur/setup-php@v2
51+
with:
52+
php-version: ${{ matrix.php }}
53+
tools: ${{ matrix.tools }}
54+
55+
-
56+
name: Install Composer dependencies
57+
uses: "ramsey/composer-install@v1"
58+
with:
59+
dependency-versions: "highest"
60+
composer-options: "--prefer-dist"
61+
62+
-
63+
name: Static Analysis
64+
run: phpstan analyse --ansi
65+
66+
-
67+
name: TestListener with Printer logger
68+
run: phpunit -c examples/phpunit.printer.xml

phpstan.neon.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
level: 1
3+
paths:
4+
- src/

0 commit comments

Comments
 (0)