Skip to content

Commit 06b9235

Browse files
authored
Merge pull request #1 from phpactor/update
Update to Github Actions
2 parents 110bc9d + 1c7b74b commit 06b9235

File tree

3 files changed

+112
-66
lines changed

3 files changed

+112
-66
lines changed

.github/workflows/ci.yml

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
name: "CI"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- 'master'
8+
9+
env:
10+
fail-fast: true
11+
TZ: "Europe/Paris"
12+
13+
jobs:
14+
php-cs-fixer:
15+
name: "PHP-CS-Fixer (${{ matrix.php-version }})"
16+
17+
runs-on: "ubuntu-latest"
18+
19+
strategy:
20+
matrix:
21+
php-version:
22+
- '7.3'
23+
24+
steps:
25+
-
26+
name: "Checkout code"
27+
uses: "actions/checkout@v2"
28+
29+
-
30+
name: "Install PHP"
31+
uses: "shivammathur/setup-php@v2"
32+
with:
33+
coverage: "none"
34+
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
35+
php-version: "${{ matrix.php-version }}"
36+
tools: composer:v2
37+
38+
-
39+
name: "Composer install"
40+
uses: "ramsey/composer-install@v1"
41+
with:
42+
composer-options: "--no-scripts"
43+
44+
-
45+
name: "Run friendsofphp/php-cs-fixer"
46+
run: "vendor/bin/php-cs-fixer fix --dry-run --diff --verbose --allow-risky=yes"
47+
phpstan:
48+
name: "PHPStan (${{ matrix.php-version }})"
49+
50+
runs-on: "ubuntu-latest"
51+
52+
strategy:
53+
matrix:
54+
php-version:
55+
- '7.3'
56+
57+
steps:
58+
-
59+
name: "Checkout code"
60+
uses: "actions/checkout@v2"
61+
62+
-
63+
name: "Install PHP"
64+
uses: "shivammathur/setup-php@v2"
65+
with:
66+
coverage: "none"
67+
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
68+
php-version: "${{ matrix.php-version }}"
69+
tools: composer:v2
70+
71+
-
72+
name: "Composer install"
73+
uses: "ramsey/composer-install@v1"
74+
with:
75+
composer-options: "--no-scripts"
76+
77+
-
78+
name: "Run PHPStan"
79+
run: "vendor/bin/phpstan analyse"
80+
phpunit:
81+
name: "PHPUnit (${{ matrix.php-version }})"
82+
83+
runs-on: "ubuntu-latest"
84+
85+
strategy:
86+
matrix:
87+
php-version:
88+
- '7.3'
89+
- '7.4'
90+
91+
steps:
92+
-
93+
name: "Checkout code"
94+
uses: "actions/checkout@v2"
95+
-
96+
name: "Install PHP"
97+
uses: "shivammathur/setup-php@v2"
98+
with:
99+
coverage: "none"
100+
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
101+
php-version: "${{ matrix.php-version }}"
102+
tools: composer:v2
103+
104+
-
105+
name: "Composer install"
106+
uses: "ramsey/composer-install@v1"
107+
with:
108+
composer-options: "--no-scripts"
109+
-
110+
name: "Run PHPUnit"
111+
run: "vendor/bin/phpunit"

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# event-dispatcher
22

3-
[![Build Status](https://secure.travis-ci.org/phly/phly-event-dispatcher.svg?branch=master)](https://secure.travis-ci.org/phly/phly-event-dispatcher)
3+
![CI](https://github.com/phpactor/phly-event-dispatcher/workflows/CI/badge.svg)
44
[![Coverage Status](https://coveralls.io/repos/github/phly/phly-event-dispatcher/badge.svg?branch=master)](https://coveralls.io/github/phly/phly-event-dispatcher?branch=master)
55

66
This library provides an experimental implementation of [PSR-14 (Event

0 commit comments

Comments
 (0)