Skip to content

Commit b13d363

Browse files
committed
Add Github Actions
1 parent 0b08fa4 commit b13d363

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/verify.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Verify
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
phpcs:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: shivammathur/setup-php@v1
12+
with:
13+
php-version: 7.3
14+
coverage: none
15+
tools: cs2pr
16+
17+
- name: Install dependencies
18+
run: composer install
19+
20+
- name: Run PHP Codesniffer
21+
run: vendor/bin/phpcs --report=checkstyle -q | cs2pr
22+
23+
phpstan:
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: shivammathur/setup-php@v1
29+
with:
30+
php-version: 7.3
31+
coverage: none
32+
tools: cs2pr
33+
34+
- name: Install dependencies
35+
run: composer install
36+
37+
- name: Run PHPStan
38+
run: vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr

0 commit comments

Comments
 (0)